This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 5179
  bintuils-2.18 does not recognise i386 firmware built on Linux when using another OS Last modified: 2007-10-15 17:13:51
     Query page      Enter new bug
Bug#: 5179   Hardware:   Reporter: Roy Marples <uberlord@gentoo.org>
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: RESOLVED   Priority:  
Resolution: DUPLICATE of bug 4424   Severity:  
Assigned To: unassigned@sources.redhat.com   Target Milestone:  
Summary:
Keywords:

Attachment Description Type Created Actions
nvenetlib.o.bz2 firmware in question application/x-bzip 2007-10-15 16:59 Edit None
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 5179 depends on: Show dependency tree
Show dependency graph
Bug 5179 blocks:

Additional Comments:


Leave as RESOLVED DUPLICATE
Reopen bug
Mark bug as VERIFIED

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2007-10-15 16:56
bintuils-2.18 does not recognise i386 firmware built on Linux when using another OS

This causes an issue when trying to link firmware into the kernel. Also happens
on sparc64, so it's probably a generic bug more than arch specific.

uberlaptop ~ # binutils-config 1; . /etc/profile
 * Switching to i686-gentoo-freebsd6.2-2.17 ...  [ ok ]
 * Please remember to run:
 *   # source /etc/profile

uberlaptop ~ # objdump -a nvenetlib.o

nvenetlib.o:     file format elf32-i386-freebsd
nvenetlib.o

uberlaptop ~ # binutils-config 2; . /etc/profile
 * Switching to i686-gentoo-freebsd6.2-2.18 ... [ ok ]
 * Please remember to run:
 *   # source /etc/profile

uberlaptop ~ # objdump -a nvenetlib.o
objdump: nvenetlib.o: File format not recognized

I don't think this is a dupe of ld/4424 as none of the patches supplied fix the
issue.

The best I could do to find the error, is that with 2.17
bfd_check_format_matches (format.c) temp = BFD_SEND_FMT (abfd,
_bfd_check_format, (abfd)); return a valid pointer where as in 2.18 it does not.
I don't know enough to investigate futher, hence posting here.

------- Additional Comment #1 From Roy Marples 2007-10-15 16:59 -------
Created an attachment (id=2042)
firmware in question

------- Additional Comment #2 From H.J. Lu 2007-10-15 17:13 -------

*** This bug has been marked as a duplicate of 4424 ***

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In