From c58212eaf957ef39484ed71316074fd8366e9c4a Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 8 Apr 2015 04:55:07 -0700 Subject: Add ld_list_options This patch adds ld_list_options for ELF targets to avoid duplicated outputs from ld --help. * Makefile.am (ELF_CLFAGS): New. (AM_CFLAGS): Add $(ELF_CLFAGS). * configure.ac (elf_list_options): New. AC_SUBST. (elf_shlib_list_options): Likewise. (elf_plt_unwind_list_options): Likewise. * lexsup.c (elf_shlib_list_options): New. (elf_static_list_options): Likewise. (elf_plt_unwind_list_options): Likewise. (ld_list_options): Likewise. (help): Call ld_list_options. * Makefile.in: Regenerated. * configure: Likewise. * emulparams/plt_unwind.sh (PLT_UNWIND): New. (PARSE_AND_LIST_OPTIONS): Removed. * emultempl/elf32.em (gld_list_options): New. (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or PARSE_AND_LIST_OPTIONS is defined. (ld_${EMULATION_NAME}_emulation): Replace gld${EMULATION_NAME}_list_options with ${gld_list_options. --- ld/ChangeLog | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'ld/ChangeLog') diff --git a/ld/ChangeLog b/ld/ChangeLog index 4228732..a76dcb3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,25 @@ +2015-04-08 H.J. Lu + + * Makefile.am (ELF_CLFAGS): New. + (AM_CFLAGS): Add $(ELF_CLFAGS). + * configure.ac (elf_list_options): New. AC_SUBST. + (elf_shlib_list_options): Likewise. + (elf_plt_unwind_list_options): Likewise. + * lexsup.c (elf_shlib_list_options): New. + (elf_static_list_options): Likewise. + (elf_plt_unwind_list_options): Likewise. + (ld_list_options): Likewise. + (help): Call ld_list_options. + * Makefile.in: Regenerated. + * configure: Likewise. + * emulparams/plt_unwind.sh (PLT_UNWIND): New. + (PARSE_AND_LIST_OPTIONS): Removed. + * emultempl/elf32.em (gld_list_options): New. + (gld${EMULATION_NAME}_list_options): Define only if BNDPLT or + PARSE_AND_LIST_OPTIONS is defined. + (ld_${EMULATION_NAME}_emulation): Replace + gld${EMULATION_NAME}_list_options with ${gld_list_options. + 2015-04-07 Alan Modra PR ld/18176 -- cgit v1.1