diff options
Diffstat (limited to 'lib/std/os/linux/start_pie.zig')
| -rw-r--r-- | lib/std/os/linux/start_pie.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/linux/start_pie.zig b/lib/std/os/linux/start_pie.zig index b05870201f..9ff6124359 100644 --- a/lib/std/os/linux/start_pie.zig +++ b/lib/std/os/linux/start_pie.zig @@ -9,7 +9,7 @@ const R_ARM_RELATIVE = 23; const R_AARCH64_RELATIVE = 1027; const R_RISCV_RELATIVE = 3; -const ARCH_RELATIVE_RELOC = switch (builtin.arch) { +const ARCH_RELATIVE_RELOC = switch (builtin.cpu.arch) { .i386 => R_386_RELATIVE, .x86_64 => R_AMD64_RELATIVE, .arm => R_ARM_RELATIVE, @@ -21,7 +21,7 @@ const ARCH_RELATIVE_RELOC = switch (builtin.arch) { // Just a convoluted (but necessary) way to obtain the address of the _DYNAMIC[] // vector as PC-relative so that we can use it before any relocation is applied fn getDynamicSymbol() [*]elf.Dyn { - const addr = switch (builtin.arch) { + const addr = switch (builtin.cpu.arch) { .i386 => asm volatile ( \\ .weak _DYNAMIC \\ .hidden _DYNAMIC |
