ld: Enable --warn-textrel by default for Linux/x86 targets
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 2c7120f7dcd2ab403e58265f8fb5169ed7fc48bb..01a281c968f6a75ccf0c92786faacafd32082722 100644 (file)
@@ -1,3 +1,74 @@
+2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.tgt (ac_default_ld_textrel_check): Set to if unset
+       for Linux/x86 targets.
+
+2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/20824
+       * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
+       * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
+       (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
+       (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
+       * ldmain.c (main): Initialize link_info.textrel_check to
+       DEFAULT_LD_TEXTREL_CHECK.
+       * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
+       * config.in: Regenerated.
+       * configure: Likewise.
+
+2020-05-28  Nick Clifton  <nickc@redhat.com>
+
+       * lexsup.c (parse_args): Generate an error if a name is not
+       provided to the -Map option.
+       (ld_options): Mention that the -Map option supports a directory
+       name as an argument.
+       * NEWS: Remove mention of support for an empty string as an
+       argument to -Map.
+       * ld.texi: Likewise.
+
+2020-05-27  Hans-Peter Nilsson  <hp@axis.com>
+
+       PR ld/22909
+       * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
+
+2020-05-27  Rasmus Villemoes <rv@rasmusvillemoes.dk>
+           Nick Clifton  <nickc@redhat.com>
+
+       * lexsup.c (parse_args): If the map filename is defined but empty
+       create a name based upon the output file name.  If the name is
+       defined but refers to a directory create a file inside the
+       directory based on the output file name.
+       * ld.texi: Document the new feature.
+       * testsuite/ld-script/map-address.exp: Add test of new feature.
+       * NEWS: Mention the new feature.
+
+2020-05-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/22909
+       * NEWS: Mention --warn-textrel.
+       * ld.texi: Update -z text/notext/textoff.  Add --warn-textrel.
+       Remove --warn-shared-textrel.
+       * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
+       OPTION_WARN_TEXTREL.
+       * lexsup.c (ld_options): Add --warn-textrel.  Obsolete
+       --warn-shared-textrel.
+       (parse_args): Updated.
+       (elf_shlib_list_options): Check link_info.textrel_check.
+       * emultempl/elf.em: Updated.
+       * testsuite/ld-elf/pr19539.d: Replace -z notext with
+       --warn-textrel.  Expect a warning.
+       * testsuite/ld-i386/warn1.d: Update expected warning.
+
+2020-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
+       * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
+       * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
+
+2020-05-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
+
 2020-05-25  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
This page took 0.030187 seconds and 4 git commands to generate.