[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-22 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 --- Comment #11 from David Li --- No problem with this as long as ld does not throw away note sections. thanks, -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-21 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 --- Comment #9 from David Li --- (In reply to Nick Clifton from comment #8) > Hi David, > > Right - I think that I have got a handle on what it going on here. > > So what happens is this - g0 is a data symbol. In your case it is a >

[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-11 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 --- Comment #4 from David Li --- (In reply to H.J. Lu from comment #3) > (In reply to David Li from comment #2) > > (In reply to H.J. Lu from comment #1) > > > Since UNREF section is not referenced, it should be GCed. Am I missing > > >

[Bug binutils/19446] New: BFD linker discards section without alloc section attribute under certain conditions

2016-01-11 Thread xinliangli at gmail dot com
Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: xinliangli at gmail dot com Target Milestone: --- If a section is not marked with SHF_ALLOC attribute and when --gc-sections is on, the BFD linker only

[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-11 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 --- Comment #2 from David Li --- (In reply to H.J. Lu from comment #1) > Since UNREF section is not referenced, it should be GCed. Am I missing > something? Note that the section does not have 'a' bit -- just like debug sections. Linker

[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-11 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 David Li changed: What|Removed |Added CC||ccoutant at gmail dot com,

[Bug binutils/19446] BFD linker discards section without alloc section attribute under certain conditions

2016-01-11 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 --- Comment #6 from David Li --- (In reply to H.J. Lu from comment #5) > (In reply to David Li from comment #4) > > (In reply to H.J. Lu from comment #3) > > > (In reply to David Li from comment #2) > > > > (In reply to H.J. Lu from comment

[Bug ld/19161] GNU ld wrongly garbage collects section referenced via __start_SECTIONNAME

2015-10-22 Thread xinliangli at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=19161 --- Comment #3 from David Li --- (In reply to H.J. Lu from comment #2) > Created attachment 8737 [details] > A patch > > Try this. Verified the fix works fine. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug ld/19161] GNU ld wrongly garbage collects section referenced via __start_SECTIONNAME

2015-10-22 Thread xinliangli at gmail dot com
, ||hjl.tools at gmail dot com, ||xinliangli at gmail dot com -- You are receiving this mail because: You are on the CC list for the bug. ___ bug-binutils mailing list bug

[Bug ld/19161] New: GNU ld wrongly garbage collects section referenced via __start_SECTIONNAME

2015-10-21 Thread xinliangli at gmail dot com
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: xinliangli at gmail dot com Target Milestone: --- Here is a small reproducible: // Failed with gnu ld gcc -fuse-ld=bfd -fdata-sections -Wl,--gc-sections gctest.c