mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
elf: fix a typo in setting ZigObject.data_relro_index
This commit is contained in:
parent
bc39bddd5f
commit
25fa092bb1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue