Implement and document --gc-keep-exported
authorfincs <fincs.alt1@gmail.com>
Fri, 16 Dec 2016 03:12:02 +0000 (13:42 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 16 Dec 2016 03:19:03 +0000 (13:49 +1030)
commit221855059a11ab76aa909a5df4104354f9384139
treee1bd030fe42b33167faff27c3df182cc6843054d
parent4c4067e410581fe5c6190407b4fd410e7b71f9e4
Implement and document --gc-keep-exported

include/
* bfdlink.h (struct bfd_link_info): Add gc_keep_exported.
bfd/
* elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Add handling
for info->gc_keep_exported.
(bfd_elf_gc_sections): Likewise.
ld/
* ld.texinfo: Document --gc-keep-exported.
* ldlex.h (enum option_values): Add OPTION_GC_KEEP_EXPORTED.
* lexsup.c (parse_args): Add handling for --gc-keep-exported.
bfd/ChangeLog
bfd/elflink.c
include/ChangeLog
include/bfdlink.h
ld/ChangeLog
ld/ld.texinfo
ld/ldlex.h
ld/lexsup.c