Re: Always keep sections marked with SEC_KEEP
authorAlan Modra <amodra@gmail.com>
Thu, 22 Oct 2015 23:44:51 +0000 (10:14 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 22 Oct 2015 23:52:26 +0000 (10:22 +1030)
commit1e7eae0dcc0e5473dda573b30107ffdd501b0d73
tree5d170d977392fcd0784425071d5ec5377e8b0118
parentbba037e0aef1f3b17cc6cf6fd041ed6110cc375a
Re: Always keep sections marked with SEC_KEEP

Revert bba037e0, it breaks the gc-sections model.  Instead fix the
underlying problem which is that _bfd_elf_gc_mark_hook is too late to
be setting SEC_KEEP.

PR ld/11133
PR ld/19161
* elflink.c (elf_gc_sweep): Revert last patch.
(_bfd_elf_gc_mark_hook): Don't set SEC_KEEP here.
bfd/ChangeLog
bfd/elflink.c
This page took 0.03023 seconds and 4 git commands to generate.