aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-07-20 21:59:40 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-07-20 21:59:40 +0000
commit699845ef7b7225a4de45fafc7e3641b6ac8d1a2b (patch)
tree98c847a0f6447e28320f258028d7c4c67247a6a5
parenteec8c321e361efbda04322aaeb3b27ab60d660fc (diff)
downloadgdb-699845ef7b7225a4de45fafc7e3641b6ac8d1a2b.zip
gdb-699845ef7b7225a4de45fafc7e3641b6ac8d1a2b.tar.gz
gdb-699845ef7b7225a4de45fafc7e3641b6ac8d1a2b.tar.bz2
2000-07-20 H.J. Lu <hjl@gnu.org>
* emultempl/elf32.em (longopts): Duplicate "disable-new-dtags" and "disable-new-dtags" to stop getopt from treating -d/-e as abbreviations for these options.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/elf32.em4
2 files changed, 10 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c3a3acf..1c6e476 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,11 @@
2000-07-20 H.J. Lu <hjl@gnu.org>
+ * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
+ and "disable-new-dtags" to stop getopt from treating -d/-e as
+ abbreviations for these options.
+
+2000-07-20 H.J. Lu <hjl@gnu.org>
+
* ld.texinfo: Add documentation for --disable-new-dtags and
--enable-new-dtags.
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 0662e22..1203e30 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -1223,7 +1223,11 @@ fi
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
cat >>e${EMULATION_NAME}.c <<EOF
+ /* getopt allows abbreviations, so we do this to stop it from
+ treating -d/-e as abbreviations for these options. */
{"disable-new-dtags", no_argument, NULL, OPTION_DISABLE_NEW_DTAGS},
+ {"disable-new-dtags", no_argument, NULL, OPTION_DISABLE_NEW_DTAGS},
+ {"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS},
{"enable-new-dtags", no_argument, NULL, OPTION_ENABLE_NEW_DTAGS},
EOF
fi