| ... | @@ -38,7 +38,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) { | ... | @@ -38,7 +38,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) { |
| 38 | // Obtain a pointer to the _DYNAMIC array. | 38 | // Obtain a pointer to the _DYNAMIC array. |
| 39 | // We have to compute its address as a PC-relative quantity not to require a | 39 | // We have to compute its address as a PC-relative quantity not to require a |
| 40 | // relocation that, at this point, is not yet applied. | 40 | // relocation that, at this point, is not yet applied. |
| 41 | fn getDynamicSymbol() [*]elf.Dyn { | 41 | inline fn getDynamicSymbol() [*]elf.Dyn { |
| 42 | return switch (builtin.cpu.arch) { | 42 | return switch (builtin.cpu.arch) { |
| 43 | .x86 => asm volatile ( | 43 | .x86 => asm volatile ( |
| 44 | \\ .weak _DYNAMIC | 44 | \\ .weak _DYNAMIC |