pub struct Segment {Show 25 fields
pub name: String,
pub files: Vec<FileInfo>,
pub fixed_vram: Option<u32>,
pub fixed_symbol: Option<String>,
pub follows_segment: Option<String>,
pub vram_class: Option<String>,
pub dir: PathBuf,
pub gp_info: Option<GpInfo>,
pub include_if_any: Vec<(String, String)>,
pub include_if_all: Vec<(String, String)>,
pub exclude_if_any: Vec<(String, String)>,
pub exclude_if_all: Vec<(String, String)>,
pub alloc_sections: Vec<String>,
pub noload_sections: Vec<String>,
pub subalign: Option<u32>,
pub segment_start_align: Option<u32>,
pub segment_end_align: Option<u32>,
pub section_start_align: Option<u32>,
pub section_end_align: Option<u32>,
pub sections_start_alignment: HashMap<String, u32>,
pub sections_end_alignment: HashMap<String, u32>,
pub wildcard_sections: bool,
pub fill_value: Option<u32>,
pub sections_subgroups: HashMap<String, Vec<String>>,
pub keep_sections: KeepSections,
}Fields§
§name: StringName of the segment
files: Vec<FileInfo>List of files corresponding to this segment
fixed_vram: Option<u32>If not None then forces the segment to have a fixed vram address instead of following the previous segment.
Not compatible with fixed_symbol, follows_segment or vram_class.
fixed_symbol: Option<String>If not None then forces the segment’s vram address to be same as the address of the given symbol instead of following the previous segment.
Not compatible with fixed_vram, follows_segment or vram_class.
follows_segment: Option<String>If not None then forces the segment’s vram address to be after the specified segment instead of following the previous one.
Not compatible with fixed_vram, fixed_symbol or vram_class.
vram_class: Option<String>If not None then forces the segment’s vram address to be same as the specified vram class instead of following the previous one.
Not compatible with fixed_vram, fixed_symbol or follows_segment.
dir: PathBufUsed as a prefix for all the files emitted for this Segment.
gp_info: Option<GpInfo>§include_if_any: Vec<(String, String)>§include_if_all: Vec<(String, String)>§exclude_if_any: Vec<(String, String)>§exclude_if_all: Vec<(String, String)>§alloc_sections: Vec<String>§noload_sections: Vec<String>§subalign: Option<u32>§segment_start_align: Option<u32>§segment_end_align: Option<u32>§section_start_align: Option<u32>§section_end_align: Option<u32>§sections_start_alignment: HashMap<String, u32>§sections_end_alignment: HashMap<String, u32>§wildcard_sections: bool§fill_value: Option<u32>§sections_subgroups: HashMap<String, Vec<String>>§keep_sections: KeepSections