From 29063f8bfb9d68a213efd1d0ab7a66f97ed9a013 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 14 Sep 2016 10:42:10 +0100 Subject: [PATCH] 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/ChangeLog | 10 ++++++++++ ld/NEWS | 3 +++ ld/emultempl/elf32.em | 27 ++++++++++++++++++--------- ld/ld.texinfo | 7 +++++-- ld/lexsup.c | 2 ++ 5 files changed, 38 insertions(+), 11 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7d3e292..58c888d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,13 @@ +2016-09-14 Nick Clifton + + 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. + 2016-09-06 H.J. Lu PR ld/20550 diff --git a/ld/NEWS b/ld/NEWS index 0f316bf..2bb429f 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -2,6 +2,9 @@ Changes in 2.28: +* The command line option --no-eh-frame-hdr can now be used in ELF based + linkers to disable the automatic generation of .eh_frame_hdr sections. + * Add --in-implib= to the ARM linker to enable specifying a set of Secure Gateway veneers that must exist in the output import library specified by --out-implib= and the address they must have. As such, diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index dd4d35a..2153bf9 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -2199,15 +2199,19 @@ fi fragment <