aboutsummaryrefslogtreecommitdiff
path: root/src/link/Elf/Object.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-09-03 21:01:12 +0200
committerJakub Konka <kubkon@jakubkonka.com>2024-09-04 13:34:26 +0200
commiteeec50d2515c5a3b65cab697ba3e28d89cc3b14c (patch)
treeec0b7769fa070c189aa605c00015ec943997b6b1 /src/link/Elf/Object.zig
parentfca92fd7c0a2e1431338ef62440751870563a0e3 (diff)
downloadzig-eeec50d2515c5a3b65cab697ba3e28d89cc3b14c.tar.gz
zig-eeec50d2515c5a3b65cab697ba3e28d89cc3b14c.zip
elf: misc .eh_frame management fixes
Diffstat (limited to 'src/link/Elf/Object.zig')
-rw-r--r--src/link/Elf/Object.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link/Elf/Object.zig b/src/link/Elf/Object.zig
index a72ac697dd..884826d82b 100644
--- a/src/link/Elf/Object.zig
+++ b/src/link/Elf/Object.zig
@@ -1096,6 +1096,7 @@ pub fn initRelaSections(self: *Object, elf_file: *Elf) !void {
for (self.atoms_indexes.items) |atom_index| {
const atom_ptr = self.atom(atom_index) orelse continue;
if (!atom_ptr.alive) continue;
+ if (atom_ptr.output_section_index == elf_file.eh_frame_section_index) continue;
const shndx = atom_ptr.relocsShndx() orelse continue;
const shdr = self.shdrs.items[shndx];
const out_shndx = try elf_file.initOutputSection(.{