This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: New flag --keep-section <section_name> to prevent certain sections from being linker garbage collected.


> I am resurfacing this discussion as this was not resolved last time
> around although Ian did approve including ".rodata.nptl_version"
> always.  So, I have included a patch to keep ".rodata.nptl_version"
> always in is_section_name_included.  The other ways to avoid baking
> pthread knowledge into the linker is to add a --keep-section option or
> to use a linker script which is not the gold way.
>
> Please review.

+      /* Do not garbage collect .rodata.nptl_version from libpthread).  */

The parenthesis is unbalanced, but I don't think this comment is
necessary -- none of the other clauses in that if statement have
comments. I think it's sufficient to provide the justification in the
ChangeLog and commit message.

This is OK with that change.

Thanks!

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]