pub fn updateSection(oc: *ObjCopy, section_name: []const u8, options: UpdateSectionOptions) void oc: *ObjCopysection_name: []const u8options: UpdateSectionOptions91
92
93
94
95
96
97
98
99
100
101
102pub fn updateSection(oc: *ObjCopy, section_name: []const u8, options: UpdateSectionOptions) void {
const graph = oc.step.owner.graph;
const arena = graph.arena;
const wc = &graph.wip_configuration;
oc.update_sections.append(arena, .{
.flags = .{
.section_flags = options.flags,
.alignment = .init(options.alignment),
},
.section_name = wc.addString(section_name) catch @panic("OOM"),
}) catch @panic("OOM");
}