mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
elf: fix a typo in setting ZigObject.data_relro_index
This commit is contained in:
parent
bc39bddd5f
commit
25fa092bb1
@ -1007,7 +1007,7 @@ pub fn lowerUav(
|
||||
.flags = elf.SHF_ALLOC | elf.SHF_WRITE,
|
||||
.offset = std.math.maxInt(u64),
|
||||
});
|
||||
self.data_relro_index = osec;
|
||||
self.data_relro_index = try self.addSectionSymbol(gpa, ".data.rel.ro", .@"1", osec);
|
||||
break :osec osec;
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user