https://sourceware.org/bugzilla/show_bug.cgi?id=19446

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(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
> > something?
> 
> Note that the section does not have 'a' bit -- just like debug sections.
> Linker won't GC debug sections, right?

ld only treats known debug sections as debug sections.  Are you looking
for a way to prevent unreferenced section from GC?

> Also there is inconsistent behavior here -- when g0 is not referenced by
> UNREF, UNREF will be kept by the linker.

g0 is removed by ld in binutils 2.26.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to