aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2018-07-04 06:22:40 -0700
committerH.J. Lu <hjl.tools@gmail.com>2018-07-04 06:22:51 -0700
commitb14b7ff14ffe911ec562004304841cf7d2775a19 (patch)
tree903b9646482198a201047e5f9c9cf7ca7f1558a5 /ld/lexsup.c
parentdb40acb0bed088872837f916029d8800c33f9f94 (diff)
downloadgdb-b14b7ff14ffe911ec562004304841cf7d2775a19.zip
gdb-b14b7ff14ffe911ec562004304841cf7d2775a19.tar.gz
gdb-b14b7ff14ffe911ec562004304841cf7d2775a19.tar.bz2
ld: Properly display default for -z separate-code
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.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index a4bc7da..86a033a 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -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, _("\