[Bug binutils/6412] New binutils is incompatible with old object files

2008-04-15 Thread ian at airs dot com
--- Additional Comments From ian at airs dot com 2008-04-16 06:02 --- The number of object files is very large, but the number of object files with more than 65,279 sections is very small. -- http://sourceware.org/bugzilla/show_bug.cgi?id=6412 --- You are receiving this mail bec

[Bug binutils/6412] New binutils is incompatible with old object files

2008-04-15 Thread shap at eros-os dot com
--- Additional Comments From shap at eros-os dot com 2008-04-16 02:53 --- This seems like a poor solution, since the number of object files out there is very large. If you *do* adopt this approach, are the "fixed" object files still compatible with *older* versions of binutils? It would

[Bug binutils/6412] New binutils is incompatible with old object files

2008-04-15 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2008-04-16 01:06 --- I reckon the best way to support old object files is to write a utility to fix them. Otherwise you need hacks in three places, bfd, readelf, and gold. -- http://sourceware.org/bugzilla/show_bug.cgi?id

[Bug binutils/6412] New: New binutils is incompatible with old object files

2008-04-15 Thread hjl dot tools at gmail dot com
Fix for PR 5900 makes binutils incompatible with old object files: # readelf -Sg foo.o readelf: Error: section [96278] in group section [4] > maximum section [96023] readelf: Error: section [96277] in group section [5] > maximum section [96023] readelf: Error: section [96276] in group s

[Bug binutils/868] bfd leaks memory in several places

2008-04-15 Thread andrejoh at gmail dot com
--- Additional Comments From andrejoh at gmail dot com 2008-04-15 20:12 --- Created an attachment (id=2697) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2697&action=view) Leak fixing for bfd_find_nearest_line in DWARF2 -- http://sourceware.org/bugzilla/show_bug.cgi?id=868

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
-- What|Removed |Added Attachment #2696|application/octet-stream|text/plain mime type|| Attachment #2696 is|0 |1

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
-- What|Removed |Added Attachment #2695|application/octet-stream|text/plain mime type|| Attachment #2695 is|0 |1

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
--- Additional Comments From cryptooctoploid at gmail dot com 2008-04-15 15:05 --- Created an attachment (id=2696) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2696&action=view) dumpelf -vv setup.elf >dump_gold -- http://sourceware.org/bugzilla/show_bug.cgi?id=6407 --

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
--- Additional Comments From cryptooctoploid at gmail dot com 2008-04-15 15:04 --- Created an attachment (id=2695) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2695&action=view) dumpelf -vv setup.elf > dump_ld -- http://sourceware.org/bugzilla/show_bug.cgi?id=6407 ---

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
--- Additional Comments From cryptooctoploid at gmail dot com 2008-04-15 14:41 --- I narrowed it down to one linker script, namely arch/x86/boot/setup.ld . On my machine (amd64) running: ld -m elf_x86_64 -T arch/x86/boot/setup.ld arch/x86/boot/a20.o arch/x86/boot/cmdline.o arch/x86/b

[Bug ld/6058] Linker segfaults with undefined weak function descriptors.

2008-04-15 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2008-04-15 14:18 --- Hi Daniel, Does the uploaded patch work for you ? Cheers Nick -- What|Removed |Added

[Bug ld/6058] Linker segfaults with undefined weak function descriptors.

2008-04-15 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2008-04-15 14:17 --- Created an attachment (id=2694) --> (http://sourceware.org/bugzilla/attachment.cgi?id=2694&action=view) Add checks for a NULL section pointer -- http://sourceware.org/bugzilla/show_bug.cgi?id=6058 --- Yo

[Bug binutils/868] bfd leaks memory in several places

2008-04-15 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2008-04-15 14:05 --- Subject: Re: bfd leaks memory in several places Hi Andre, > Nick, I'm not sure reverting the cleanup is correct. At least in binutils > 2.18, the function concat_filename uses bfd_malloc, which again uses mall

Re: [Bug binutils/868] bfd leaks memory in several places

2008-04-15 Thread Nick Clifton
Hi Andre, Nick, I'm not sure reverting the cleanup is correct. At least in binutils 2.18, the function concat_filename uses bfd_malloc, which again uses malloc. Hmm, that is a fair point. Running with a change similar to the one in comment #14 plus freeing caller_file removes the leaks I

[Bug gold/6407] linux kernel linked with gold fails to boot

2008-04-15 Thread ian at airs dot com
--- Additional Comments From ian at airs dot com 2008-04-15 13:26 --- It would be extremely helpful if you can identify what the linker is doing wrong. (I've known for some time that the kernel fails to boot--it was in the original gold announcement--but I don't know what needs to be don

[Bug gold/6407] New: linux kernel linked with gold fails to boot

2008-04-15 Thread cryptooctoploid at gmail dot com
Any kernel linked with the latest (or any) version of gold (GNU gold (GNU Binutils 2.18.50.20080415) 1.5) fails to boot. Normal kernel: # file kernel176 kernel176: Linux kernel x86 boot executable RO-rootFS, root_dev 0x801, swap_dev 0x1, Normal VGA kernel linked with gold: # file kernel177 kern