From 29063f8bfb9d68a213efd1d0ab7a66f97ed9a013 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 14 Sep 2016 10:42:10 +0100 Subject: 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. --- ld/ld.texinfo | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ld/ld.texinfo') diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 0213851..5944b12 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -2270,9 +2270,12 @@ file as @code{__wrap_malloc}; if you do, the assembler may resolve the call before the linker has a chance to wrap it to @code{malloc}. @kindex --eh-frame-hdr +@kindex --no-eh-frame-hdr @item --eh-frame-hdr -Request creation of @code{.eh_frame_hdr} section and ELF -@code{PT_GNU_EH_FRAME} segment header. +@itemx --no-eh-frame-hdr +Request (@option{--eh-frame-hdr}) or suppress +(@option{--no-eh-frame-hdr}) the creation of @code{.eh_frame_hdr} +section and ELF @code{PT_GNU_EH_FRAME} segment header. @kindex --ld-generated-unwind-info @item --no-ld-generated-unwind-info -- cgit v1.1