]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Properly display default for -z separate-code
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jul 2018 13:22:40 +0000 (06:22 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jul 2018 13:22:51 +0000 (06:22 -0700)
Check DEFAULT_LD_Z_SEPARATE_CODE to display default for -z separate-code.

PR ld/23358
* lexsup.c (elf_shlib_list_options): Properly display default
for -z separate-code.

ld/ChangeLog
ld/lexsup.c

index a3e8594338df1f9fde7dee170d7ea70826d981d3..66960147b2f1e03698c3e1b5b7c2f7690b3e8db9 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR ld/23358
+       * lexsup.c (elf_shlib_list_options): Properly display default
+       for -z separate-code.
+
 2018-07-02  Maciej W. Rozycki  <macro@mips.com>
 
        * testsuite/ld-mips-elf/mips-elf.exp: Fix a typo in PR ld/21334
index a4bc7da67fabc06661c0083ecba7bbe2ad59078c..86a033a383f86bea9b480fc43c93b34e1f143c80 100644 (file)
@@ -1796,10 +1796,17 @@ elf_shlib_list_options (FILE *file)
   fprintf (file, _("\
   -z norelro                  Don't create RELRO program header (default)\n"));
 #endif
+#if DEFAULT_LD_Z_SEPARATE_CODE
+  fprintf (file, _("\
+  -z separate-code            Create separate code program header (default)\n"));
+  fprintf (file, _("\
+  -z noseparate-code          Don't create separate code program header\n"));
+#else
   fprintf (file, _("\
   -z separate-code            Create separate code program header\n"));
   fprintf (file, _("\
   -z noseparate-code          Don't create separate code program header (default)\n"));
+#endif
   fprintf (file, _("\
   -z common                   Generate common symbols with STT_COMMON type\n"));
   fprintf (file, _("\