[Bug ld/5006] New: ld --gc-sections erroneously discards a section

2007-09-07 Thread vda dot linux at googlemail dot com
I think I have a testcase where ld --gc-sections erroneously discards a section. I'd appreciate if someone will take a look at it. You can download it from http://busybox.net/~vda/ksymtab_bug.tar.bz2 This testcase is adapted from Linux kernel build. Kernel image is linked using custom linker scr

[Bug ld/4992] ld: --print-gc-sections + --verbose = mess

2007-09-07 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-09-07 14:30 --- Created an attachment (id=1986) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1986&action=view) Flush stdout before emitting an error message -- http://sourceware.org/bugzilla/show_bug.cgi?id=4992 --

[Bug ld/4992] ld: --print-gc-sections + --verbose = mess

2007-09-07 Thread nickc at redhat dot com
--- Additional Comments From nickc at redhat dot com 2007-09-07 14:31 --- Hi Denis, Flushing stdout before emitting the error/information message seems to be the right thing to do. Please could you try out the uploaded patch and let me know if it works for you. Cheers Nick --

[Bug ld/5006] ld --gc-sections erroneously discards a section

2007-09-07 Thread amodra at bigpond dot net dot au
-- What|Removed |Added AssignedTo|unassigned at sources dot |amodra at bigpond dot net |redhat dot com |dot au http://sourceware.org/bugzil

[Bug ld/5006] ld --gc-sections erroneously discards a section

2007-09-07 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2007-09-08 02:32 --- Looks like alignment padding for .bss is being written to the file -- What|Removed |Added

[Bug ld/5006] ld --gc-sections erroneously discards a section

2007-09-07 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2007-09-08 02:33 --- and overwriting the symbol table. -- http://sourceware.org/bugzilla/show_bug.cgi?id=5006 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someon

[Bug ld/5006] ld --gc-sections erroneously discards a section

2007-09-07 Thread amodra at bigpond dot net dot au
--- Additional Comments From amodra at bigpond dot net dot au 2007-09-08 03:02 --- Alignment padding should not be written for .bss, but it is because the output .bss has SEC_HAS_CONTENTS set. See ldwite.c:build_link_order . SEC_HAS_CONTENTS is set because arch_x86_64_kernel_built-in.o