Add --rosegment option to BFD linker to stop the '-z separate-code' from generating two read-only segments.

PR 30907
This commit is contained in:
Nick Clifton
2024-06-13 15:10:15 +01:00
parent 888ff82e77
commit e8e10743f7
15 changed files with 709 additions and 45 deletions

View File

@@ -2233,6 +2233,17 @@ elf_shlib_list_options (FILE *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
#if DEFAULT_LD_ROSEGMENT
fprintf (file, _("\
--rosegment With -z separate-code, create a single read-only segment (default)\n"));
fprintf (file, _("\
--no-rosegment With -z separate-code, creste two read-only segments\n"));
#else
fprintf (file, _("\
--rosegment With -z separate-code, create a single read-only segment\n"));
fprintf (file, _("\
--no-rosegment With -z separate-code, creste two read-only segments (default)\n"));
#endif
fprintf (file, _("\
-z common Generate common symbols with STT_COMMON type\n"));