Skip to content

Commit

Permalink
elf: actually init __start/__stop symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Sep 20, 2024
1 parent cef1026 commit 727c55d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Elf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ pub fn flush(self: *Elf) !void {
try self.addCommentString();
try self.finalizeMergeSections();
try self.initOutputSections();
if (self.getInternalObject()) |obj| {
try obj.initStartStopSymbols(self);
}

if (self.options.z_execstack_if_needed) {
for (self.objects.items) |index| {
Expand Down

0 comments on commit 727c55d

Please sign in to comment.