Skip to content

Commit b14b7ff

Browse files
committed
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.
1 parent db40acb commit b14b7ff

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

ld/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2018-07-04 H.J. Lu <hongjiu.lu@intel.com>
2+
3+
PR ld/23358
4+
* lexsup.c (elf_shlib_list_options): Properly display default
5+
for -z separate-code.
6+
17
2018-07-02 Maciej W. Rozycki <macro@mips.com>
28

39
* testsuite/ld-mips-elf/mips-elf.exp: Fix a typo in PR ld/21334

ld/lexsup.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1796,10 +1796,17 @@ elf_shlib_list_options (FILE *file)
17961796
fprintf (file, _("\
17971797
-z norelro Don't create RELRO program header (default)\n"));
17981798
#endif
1799+
#if DEFAULT_LD_Z_SEPARATE_CODE
1800+
fprintf (file, _("\
1801+
-z separate-code Create separate code program header (default)\n"));
1802+
fprintf (file, _("\
1803+
-z noseparate-code Don't create separate code program header\n"));
1804+
#else
17991805
fprintf (file, _("\
18001806
-z separate-code Create separate code program header\n"));
18011807
fprintf (file, _("\
18021808
-z noseparate-code Don't create separate code program header (default)\n"));
1809+
#endif
18031810
fprintf (file, _("\
18041811
-z common Generate common symbols with STT_COMMON type\n"));
18051812
fprintf (file, _("\

0 commit comments

Comments
 (0)