aboutsummaryrefslogtreecommitdiff
path: root/src/link/MachO/Object.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-08-26 07:56:49 +0200
committerJakub Konka <kubkon@jakubkonka.com>2023-08-29 11:39:34 +0200
commit180979ee41e7374ee1b8bc941e2281bb44e41dfd (patch)
tree485ffd92d423bd118e64c4db0bf45114ac74b726 /src/link/MachO/Object.zig
parentf29d9ec61cf9d533035749fe614f5071e80bc3d0 (diff)
downloadzig-180979ee41e7374ee1b8bc941e2281bb44e41dfd.tar.gz
zig-180979ee41e7374ee1b8bc941e2281bb44e41dfd.zip
macho: move getOutputSection into Atom
Diffstat (limited to 'src/link/MachO/Object.zig')
-rw-r--r--src/link/MachO/Object.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/link/MachO/Object.zig b/src/link/MachO/Object.zig
index 8c523779ea..c9f32aa4fd 100644
--- a/src/link/MachO/Object.zig
+++ b/src/link/MachO/Object.zig
@@ -377,7 +377,7 @@ pub fn splitRegularSections(self: *Object, zld: *Zld, object_id: u32) !void {
const sections = self.getSourceSections();
for (sections, 0..) |sect, id| {
if (sect.isDebug()) continue;
- const out_sect_id = (try zld.getOutputSection(sect)) orelse {
+ const out_sect_id = (try Atom.getOutputSection(zld, sect)) orelse {
log.debug(" unhandled section '{s},{s}'", .{ sect.segName(), sect.sectName() });
continue;
};
@@ -397,7 +397,7 @@ pub fn splitRegularSections(self: *Object, zld: *Zld, object_id: u32) !void {
if (self.in_symtab == null) {
for (sections, 0..) |sect, id| {
if (sect.isDebug()) continue;
- const out_sect_id = (try zld.getOutputSection(sect)) orelse continue;
+ const out_sect_id = (try Atom.getOutputSection(zld, sect)) orelse continue;
if (sect.size == 0) continue;
const sect_id = @as(u8, @intCast(id));
@@ -456,7 +456,7 @@ pub fn splitRegularSections(self: *Object, zld: *Zld, object_id: u32) !void {
log.debug("splitting section '{s},{s}' into atoms", .{ sect.segName(), sect.sectName() });
// Get output segment/section in the final artifact.
- const out_sect_id = (try zld.getOutputSection(sect)) orelse continue;
+ const out_sect_id = (try Atom.getOutputSection(zld, sect)) orelse continue;
log.debug(" output sect({d}, '{s},{s}')", .{
out_sect_id + 1,