Handle __start_* and __stop_* symbols in --gc-sections
authorAlan Modra <amodra@gmail.com>
Fri, 23 Oct 2015 11:53:05 +0000 (22:23 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 23 Oct 2015 11:56:25 +0000 (22:26 +1030)
commit1cce69b9dc8c58884c3cc4a8928fb234294e6886
treead6bb7d70a998457311dd8034c00df20b11699d4
parentbe83aa76d2877770c23d7c2bde0319564a8f7e48
Handle __start_* and __stop_* symbols in --gc-sections

PR ld/11133
PR ld/19161
PR ld/19167
* elflink.c (_bfd_elf_gc_mark_hook): Delete code handling __start_*
and __stop_* symbol refs.
(_bfd_elf_gc_mark_rsec): Add start_stop parameter.  Handle __start_*
and __stop_* symbol refs here..
(_bfd_elf_gc_mark_reloc): ..and here.
* elf-bfd.h (_bfd_elf_gc_mark_hook): Update prototype.
* elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update
_bfd_elf_gc_mark_rsec call.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-eh-frame.c
bfd/elflink.c