aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2024-06-13 15:10:15 +0100
committerNick Clifton <nickc@redhat.com>2024-06-13 15:10:15 +0100
commite8e10743f7b207b21a1efb0cc9e42487080db013 (patch)
treedaeed5b3fb3bdadce5bc0b6297cca0c96aee37a7 /include
parent888ff82e77d9ab8f04893a68cd6b4f518d6b50d9 (diff)
downloadgdb-e8e10743f7b207b21a1efb0cc9e42487080db013.zip
gdb-e8e10743f7b207b21a1efb0cc9e42487080db013.tar.gz
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 'include')
-rw-r--r--include/bfdlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bfdlink.h b/include/bfdlink.h
index eac07d7..015370d 100644
--- a/include/bfdlink.h
+++ b/include/bfdlink.h
@@ -423,6 +423,9 @@ struct bfd_link_info
/* TRUE if separate code segment should be created. */
unsigned int separate_code: 1;
+ /* TRUE if only one read-only, non-code segment should be created. */
+ unsigned int one_rosegment: 1;
+
/* Nonzero if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment
should be created. 1 for DWARF2 tables, 2 for compact tables. */
unsigned int eh_frame_hdr_type: 2;