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
--- 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
--
--- 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
--
--
What|Removed |Added
AssignedTo|unassigned at sources dot |amodra at bigpond dot net
|redhat dot com |dot au
http://sourceware.org/bugzil
--- 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
--- 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
--- 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