ld: Add --no-print-map-discarded option
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 2853c0990edf59a58ea99811bf70cdf6532ba3de..c8eda47e2f5d8c16984a0f79e0d6aa93b2880a6a 100644 (file)
@@ -1,3 +1,210 @@
+2019-04-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
+
+       * NEWS: Mention new option --no-print-map-discarded.
+       * ld.h (ld_config_type) <print_map_discarded>: New field.
+       * ldlang.c (lang_map): Conditionally output discarded sections
+       in map files based on configuration option.
+       * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
+       OPTION_NO_PRINT_MAP_DISCARDED>: New.
+       * ldmain.c (main): Enabled print_map_discarded by default.
+       * lexsup.c (ld_options): Add new command-line options.
+       (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
+       OPTION_PRINT_MAP_DISCARDED>: New cases.
+       * ld.texi: Document new options.
+       * testsuite/ld-gc/gc.exp: Add new test.
+       * testsuite/ld-gc/skip-map-discarded.s: New file.
+       * testsuite/ld-gc/skip-map-discarded.d: New file.
+       * testsuite/ld-gc/skip-map-discarded.map: New file.
+
+2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * ld.texi: Document -z cet-report=[none|warning|error].
+       * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
+       * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
+       tests.
+       * testsuite/ld-x86-64/x86-64.exp: Likewise.
+       * testsuite/ld-i386/property-x86-cet1.d: New file.
+       * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-i386/property-x86-cet6.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
+       * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
+
+2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New.  Set
+       to "-static-pie" if target compiler supports it.
+       * testsuite/ld-elf/elf.exp: Run -static-pie tests if
+       $STATIC_PIE_LDFLAGS isn't empty.
+       * testsuite/ld-ifunc/ifunc.exp: Likewise.
+
+2019-04-11  Tamar Christina  <tamar.christina@arm.com>
+
+       PR ld/24302
+       * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
+       * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
+
+2019-04-10  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * scripttempl/elf.sc (CREATE_PIC): New.  Set for CREATE_SHLIB or
+       CREATE_PIE.
+       (__rel_iplt_start): Don't define for CREATE_PIC.
+       (__rel_iplt_end): Likewise.
+       (__rela_iplt_start): Likewise.
+       (__rela_iplt_end): Likewise.
+
+2019-04-10  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
+       powerpc-nto.
+
+2019-04-10  Alan Modra  <amodra@gmail.com>
+
+       * emultempl/cskyelf.em (csk_elf_before_parse): New function,
+       setting use_branch_stub false for linux.
+       (csky_elf_create_output_section_statements): Do emit this
+       function and all others in the file for linux, plus the branch
+       option control.  Disable branch stubs when non-ELF.
+
+2019-04-10  Alan Modra  <amodra@gmail.com>
+
+       * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
+       (ecskyelf_linux.c): Depend on cskyelf.sh.
+       (eelf32microblazeel.c): Depend on elf32microblaze.sh.
+       * Makefile.in: Regenerate.
+       * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
+       (PAGE_SIZE): Don't define.
+       * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
+       the differing variable defs/undefs.
+       * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
+       * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
+       (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
+       (PAGE_SIZE): Don't define.
+       * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
+       leaving just the differing OUTPUT_FORMAT.
+
+2019-04-10  Alan Modra  <amodra@gmail.com>
+
+       * po/BLD-POTFILES.in: Regenerate.
+
+2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
+       lynxos and nto targets.
+
+2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
+       (eelf_i386_chaos.c): Removed.
+       * Makefile.in: Regenerated.
+       * configure.tgt: Remove i[3-7]86-*-kaos*.
+       * emulparams/elf_i386_chaos.sh: Removed.
+
+2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
+       * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
+
+2019-04-08  Alan Modra  <amodra@gmail.com>
+
+       * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
+       * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
+       * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
+
+2019-04-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
+       (eelf_i386_sol2.c): Also depend on
+       $(srcdir)/emultempl/solaris2-x86.em.
+       (eelf_x86_64_sol2.c): Likewise.
+       * Makefile.in: Regenerated.
+       * emulparams/call_nop.sh: Set x86-specific linker options via
+       params.
+       * emulparams/cet.sh: Likewise.
+       * emulparams/reloc_overflow.sh: Likewise.
+       * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New.  Set to
+       "elf-x86".
+       * emulparams/elf_i386.sh: Likewise.
+       * emulparams/elf_i386_be.sh: Likewise.
+       * emulparams/elf_i386_chaos.sh: Likewise.
+       * emulparams/elf_i386_ldso.sh: Likewise.
+       * emulparams/elf_i386_vxworks.sh: Likewise.
+       * emulparams/elf_iamcu.sh: Likewise.
+       * emulparams/elf_k1om.sh: Likewise.
+       * emulparams/elf_l1om.sh: Likewise.
+       * emulparams/elf_x86_64.sh: Likewise.
+       * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
+       "solaris2-x86".
+       * emulparams/elf_x86_64_sol2.sh: Likewise.
+       * emultempl/elf-x86.em: New file.
+       * emultempl/solaris2-x86.em: Likewise.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
+       set link_info.call_nop_byte.
+
+2019-04-05  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
+       * testsuite/ld-powerpc/tlsopt5.d: Likewise.
+       * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
+
+2019-04-03  Alan Modra  <amodra@gmail.com>
+
+       PR 24411
+       ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
+       (<EXPRESSION>"/DISCARD/"): New.
+
+2019-04-03  Alan Modra  <amodra@gmail.com>
+
+       * ldlex.l: Formatting.
+       (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
+       (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
+       (NOCFILENAMECHAR): Remove duplicate chars.  Reorder.
+       (SYMBOLCHARN): Likewise.  Rename to SYMBOLNAMECHAR.
+       (<INPUTLIST>"$SYSROOT"..): Delete rule.
+
+2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
+
+       * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
+       test definition.
+       * testsuite/ld-xtensa/xtensa.exp
+       (relax-undef-weak-pie-export-dynamic): Add new test.
+
+2019-03-26  Martin Liska  <mliska@suse.cz>
+
+       * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
+       lto_visibility_str and use then to inform about plugin-symbols.
+       * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
+
+2019-03-25  Tamar Christina  <tamar.christina@arm.com>
+
+       * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
+       * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
+
 2019-03-21  Sudakshina Das  <sudi.das@arm.com>
 
        * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
This page took 0.03197 seconds and 4 git commands to generate.