aboutsummaryrefslogtreecommitdiff
path: root/ld/NEWS
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-28 04:21:04 -0700
committerH.J. Lu <hjl.tools@gmail.com>2020-05-28 04:21:16 -0700
commitb32632c49968cd03e952f9b63b32d9e9f1ddaf53 (patch)
tree49233e497456cbd09e444e4f4aad77f009c681a7 /ld/NEWS
parent151f5de4a6548cd83a79b4705f1e901776ddacc5 (diff)
downloadgdb-b32632c49968cd03e952f9b63b32d9e9f1ddaf53.zip
gdb-b32632c49968cd03e952f9b63b32d9e9f1ddaf53.tar.gz
gdb-b32632c49968cd03e952f9b63b32d9e9f1ddaf53.tar.bz2
ld: Add --enable-textrel-check=[no|yes|warning|error]
Add a configure option, --enable-textrel-check=[no|yes|warning|error], to decide what ELF linker should do by default with DT_TEXTREL in an executable or shared library. 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.
Diffstat (limited to 'ld/NEWS')
-rw-r--r--ld/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/NEWS b/ld/NEWS
index 2240aeb..62b74b1 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,5 +1,9 @@
-*- text -*-
+* Add a configure option, --enable-textrel-check=[no|yes|warning|error],
+ to decide what ELF linker should do by default with DT_TEXTREL in an
+ executable or shared library.
+
* The -Map=<filename> command line option has been extended so that if
<filename> is a directory then <filename>/<output-filename>.map will be
created.