Skip to content

Commit

Permalink
start: Always inline the call to std.os.linux.pie.relocate().
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Jul 27, 2024
1 parent 5dc6848 commit 7d984b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/start.zig
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ fn posixCallMainAndExit(argc_argv_ptr: [*]usize) callconv(.C) noreturn {
// Apply the initial relocations as early as possible in the startup
// process.
if (builtin.position_independent_executable) {
std.os.linux.pie.relocate(phdrs);
@call(.always_inline, std.os.linux.pie.relocate, .{phdrs});
}

// This must be done after PIE relocations have been applied or we may crash
Expand Down

0 comments on commit 7d984b4

Please sign in to comment.