Skip to content

Commit 727c55d

Browse files
committed
elf: actually init __start/__stop symbols
1 parent cef1026 commit 727c55d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Elf.zig

+3
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ pub fn flush(self: *Elf) !void {
347347
try self.addCommentString();
348348
try self.finalizeMergeSections();
349349
try self.initOutputSections();
350+
if (self.getInternalObject()) |obj| {
351+
try obj.initStartStopSymbols(self);
352+
}
350353

351354
if (self.options.z_execstack_if_needed) {
352355
for (self.objects.items) |index| {

0 commit comments

Comments
 (0)