diff options
author | Nick Clifton <nickc@redhat.com> | 2024-06-13 15:10:15 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-06-13 15:10:15 +0100 |
commit | e8e10743f7b207b21a1efb0cc9e42487080db013 (patch) | |
tree | daeed5b3fb3bdadce5bc0b6297cca0c96aee37a7 /ld/lexsup.c | |
parent | 888ff82e77d9ab8f04893a68cd6b4f518d6b50d9 (diff) | |
download | fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.zip fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.tar.gz fsf-binutils-gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.tar.bz2 |
Add --rosegment option to BFD linker to stop the '-z separate-code' from generating two read-only segments.
PR 30907
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r-- | ld/lexsup.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c index 4125d84..5ceefb4 100644 --- a/ld/lexsup.c +++ b/ld/lexsup.c @@ -2234,6 +2234,17 @@ elf_shlib_list_options (FILE *file) 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")); fprintf (file, _("\ |