mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.os.linux.start_pie: Inline the getDynamicSymbol() function.
On MIPS, this call will require a relocation, which we can't do until after PIE relocations have been applied.
This commit is contained in:
parent
5633767b20
commit
68cebde186
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) {
|
|||
// Obtain a pointer to the _DYNAMIC array.
|
||||
// We have to compute its address as a PC-relative quantity not to require a
|
||||
// relocation that, at this point, is not yet applied.
|
||||
fn getDynamicSymbol() [*]elf.Dyn {
|
||||
inline fn getDynamicSymbol() [*]elf.Dyn {
|
||||
return switch (builtin.cpu.arch) {
|
||||
.x86 => asm volatile (
|
||||
\\ .weak _DYNAMIC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue