@@ -60,8 +60,8 @@ pub struct DataDescription {
6060 pub function_relocs : Vec < ( CodeOffset , ir:: FuncRef ) > ,
6161 /// Data addresses to write at specified offsets.
6262 pub data_relocs : Vec < ( CodeOffset , ir:: GlobalValue , Addend ) > ,
63- /// Object file section
64- pub custom_segment_section : Option < ( String , String ) > ,
63+ /// Object file segment, section and Mach-O flags.
64+ pub custom_segment_section : Option < ( String , String , u32 ) > ,
6565 /// Alignment in bytes. `None` means that the default alignment of the
6666 /// respective module should be used.
6767 pub align : Option < u64 > ,
@@ -112,8 +112,8 @@ impl DataDescription {
112112 }
113113
114114 /// Override the segment/section for data, only supported on Object backend
115- pub fn set_segment_section ( & mut self , seg : & str , sec : & str ) {
116- self . custom_segment_section = Some ( ( seg. to_owned ( ) , sec. to_owned ( ) ) )
115+ pub fn set_segment_section ( & mut self , seg : & str , sec : & str , macho_flags : u32 ) {
116+ self . custom_segment_section = Some ( ( seg. to_owned ( ) , sec. to_owned ( ) , macho_flags ) )
117117 }
118118
119119 /// Set the alignment for data. The alignment must be a power of two.
0 commit comments