From e8e10743f7b207b21a1efb0cc9e42487080db013 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 13 Jun 2024 15:10:15 +0100 Subject: Add --rosegment option to BFD linker to stop the '-z separate-code' from generating two read-only segments. PR 30907 --- include/bfdlink.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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; -- cgit v1.1