aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-09-14 10:42:10 +0100
committerNick Clifton <nickc@redhat.com>2016-09-14 10:42:10 +0100
commit29063f8bfb9d68a213efd1d0ab7a66f97ed9a013 (patch)
treee3dc42be85b5b08d1854d6b174d359670a4eebdf /ld/lexsup.c
parentd68ff01f176038a3a1f21bd2a60dd3d5a2ea0343 (diff)
downloadbinutils-29063f8bfb9d68a213efd1d0ab7a66f97ed9a013.zip
binutils-29063f8bfb9d68a213efd1d0ab7a66f97ed9a013.tar.gz
binutils-29063f8bfb9d68a213efd1d0ab7a66f97ed9a013.tar.bz2
Add support for disabling automatic generation of .eh_frame_hdr sections in ELF based linkers.
PR ld/20537 * emultempl/elf32.em: More OPTION_xxx values into an enum. Add OPTION_NO_EH_FRAME_HDR. (_add_options): Add support for --no-eh-frame-hdr. * ld.texinfo: Document new option. * lexsup.c (elf_shlib_list_options): List new option. * NEWS: Mention the new option.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 6e279ae..294c4b2 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -1724,6 +1724,8 @@ elf_shlib_list_options (FILE *file)
fprintf (file, _("\
--eh-frame-hdr Create .eh_frame_hdr section\n"));
fprintf (file, _("\
+ --no-eh-frame-hdr Do not create .eh_frame_hdr section\n"));
+ fprintf (file, _("\
--exclude-libs=LIBS Make all symbols in LIBS hidden\n"));
fprintf (file, _("\
--hash-style=STYLE Set hash style to sysv, gnu or both\n"));