| ... | ... | @@ -13,6 +13,7 @@ const R_CSKY_RELATIVE = 9; |
| 13 | 13 | const R_HEXAGON_RELATIVE = 35; |
| 14 | 14 | const R_LARCH_RELATIVE = 3; |
| 15 | 15 | const R_68K_RELATIVE = 22; |
| 16 | const R_MICROBLAZE_REL = 16; |
| 16 | 17 | const R_MIPS_RELATIVE = 128; |
| 17 | 18 | const R_OR1K_RELATIVE = 21; |
| 18 | 19 | const R_PPC_RELATIVE = 22; |
| ... | ... | @@ -31,6 +32,7 @@ const R_RELATIVE = switch (builtin.cpu.arch) { |
| 31 | 32 | .hexagon => R_HEXAGON_RELATIVE, |
| 32 | 33 | .loongarch32, .loongarch64 => R_LARCH_RELATIVE, |
| 33 | 34 | .m68k => R_68K_RELATIVE, |
| 35 | .microblaze, .microblazeel => R_MICROBLAZE_REL, |
| 34 | 36 | .mips, .mipsel, .mips64, .mips64el => R_MIPS_RELATIVE, |
| 35 | 37 | .or1k => R_OR1K_RELATIVE, |
| 36 | 38 | .powerpc, .powerpcle, .powerpc64, .powerpc64le => R_PPC_RELATIVE, |
| ... | ... | @@ -129,6 +131,10 @@ inline fn getDynamicSymbol() [*]const elf.Dyn { |
| 129 | 131 | \\ lea (%[ret], %%pc), %[ret] |
| 130 | 132 | : [ret] "=r" (-> [*]const elf.Dyn), |
| 131 | 133 | ), |
| 134 | .microblaze, .microblazeel => asm volatile ( |
| 135 | \\ lwi %[ret], r20, 0 |
| 136 | : [ret] "=r" (-> [*]const elf.Dyn), |
| 137 | ), |
| 132 | 138 | .mips, .mipsel => asm volatile ( |
| 133 | 139 | \\ .weak _DYNAMIC |
| 134 | 140 | \\ .hidden _DYNAMIC |