mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
macho: preserve section name for code sections
This commit is contained in:
parent
ee68f35bfe
commit
0a60e4448d
@ -104,7 +104,7 @@ pub fn initOutputSection(sect: macho.section_64, macho_file: *MachO) !u8 {
|
||||
const segname, const sectname, const flags = blk: {
|
||||
if (sect.isCode()) break :blk .{
|
||||
"__TEXT",
|
||||
"__text",
|
||||
sect.sectName(),
|
||||
macho.S_REGULAR | macho.S_ATTR_PURE_INSTRUCTIONS | macho.S_ATTR_SOME_INSTRUCTIONS,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user