elf: emit .rela.eh_frame section header if required

This commit is contained in:
Jakub Konka 2023-11-07 14:47:11 +01:00
parent 0211d6bf4f
commit 31b280c78f

View File

@ -3452,6 +3452,7 @@ fn initSectionsObject(self: *Elf) !void {
.addralign = ptr_size,
.offset = std.math.maxInt(u64),
});
_ = try self.addRelaShdr(".rela.eh_frame", self.eh_frame_section_index.?);
}
try self.initSymtab();