[Bug ld/4277] BFD reports internal error at elflink.c in elf_link_output_extsym

2007-03-29 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-29 14:50 --- I guess LDFLAGS=-s -Wl,-O1,-zdynsort,-z,combreloc,-hashval,--as-needed,--enable-new-dtags -Bdirect doesn't work with your linker. I have no problems on FC6: bash-3.1$ cat x.c #include int main () { printf ("Hell

Re: [Bug binutils/4110] Broken object file crashes nm

2007-03-29 Thread Nick Clifton
Hi Sami, Right, first of all, I have checked in the patch as it currently exists (patch.5). We will be branching for release 2.18 at some point in the near future and I want to make sure that the error checking we have already developed gets into that release. I added this ChangeLog entry

[Bug binutils/4110] Broken object file crashes nm

2007-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-03-29 16:01 --- Subject: Re: Broken object file crashes nm Hi Sami, Right, first of all, I have checked in the patch as it currently exists (patch.5). We will be branching for release 2.18 at some point in the near future

[Bug binutils/4110] Broken object file crashes nm

2007-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-03-29 16:01 --- Created an attachment (id=1655) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1655&action=view) Add another check for a NULL idx->shdr entry. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4110 --

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-29 17:04 --- It works for me. Please provide a QMAGIC file which shows the problem. -- What|Removed |Added

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread Quentin dot Godfroy at ens dot fr
--- Additional Comments From Quentin dot Godfroy at ens dot fr 2007-03-29 17:17 --- Created an attachment (id=1656) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1656&action=view) QMAGIC sample This sample was created with as and ld configured with host=x86_64-linux and target=

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-29 17:35 --- That is normal since bfd_vma is 64bit on 64bit host. The same applies to any 32bit targets, including ELF/i386. -- http://sourceware.org/bugzilla/show_bug.cgi?id=4292 --- You are receiving this mail because: -

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-03-29 17:41 --- Created an attachment (id=1657) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1657&action=view) Make nm print addresses of symbols as 32-bit or 64-bit values, depending upon the size of the target --

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread hjl at lucon dot org
--- Additional Comments From hjl at lucon dot org 2007-03-29 18:16 --- It is not just nm. Almost all programs in binutils behave the same when displaying address, either for output or error message. We should be very careful, not to hide problems. For example, when nm shows ...

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-03-29 18:16 --- Created an attachment (id=1658) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1658&action=view) Improved version of previous patch with better heuristics for guessing target address size -- W

Re: [Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread Nick Clifton
Hi Quentin, target=i486-linuxaout. The problem here is that the aout file format does not specify the address size of the objects it contains, so the BFD library does not know whether the objects are 32-bit or 64-bit. Instead nm defaults to using the bitsize of the host. I have uploaded

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-03-29 18:17 --- Subject: Re: nm and objdump show addresses on 64 bits for32bit a.out files Hi Quentin, > target=i486-linuxaout. The problem here is that the aout file format does not specify the address size of the objec

[Bug binutils/4292] nm and objdump show addresses on 64 bits for 32bit a.out files

2007-03-29 Thread Quentin dot Godfroy at ens dot fr
--- Additional Comments From Quentin dot Godfroy at ens dot fr 2007-03-29 19:35 --- (In reply to comment #7) > Subject: Re: nm and objdump show addresses on 64 bits > for 32bit a.out files > > > target=i486-linuxaout. > > The problem here is that the aout file format does not specif