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.
This commit is contained in:
parent
db40acb0be
commit
b14b7ff14f
2 changed files with 13 additions and 0 deletions
|
@ -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>
|
2018-07-02 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
* testsuite/ld-mips-elf/mips-elf.exp: Fix a typo in PR ld/21334
|
* testsuite/ld-mips-elf/mips-elf.exp: Fix a typo in PR ld/21334
|
||||||
|
|
|
@ -1796,10 +1796,17 @@ elf_shlib_list_options (FILE *file)
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z norelro Don't create RELRO program header (default)\n"));
|
-z norelro Don't create RELRO program header (default)\n"));
|
||||||
#endif
|
#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, _("\
|
fprintf (file, _("\
|
||||||
-z separate-code Create separate code program header\n"));
|
-z separate-code Create separate code program header\n"));
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z noseparate-code Don't create separate code program header (default)\n"));
|
-z noseparate-code Don't create separate code program header (default)\n"));
|
||||||
|
#endif
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
-z common Generate common symbols with STT_COMMON type\n"));
|
-z common Generate common symbols with STT_COMMON type\n"));
|
||||||
fprintf (file, _("\
|
fprintf (file, _("\
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue