authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-08 19:09:39+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-09 16:56:25+02:00
log8dda65bba08a65a1df846ae68cfa31272e5ee1ea
tree2f7de7397becc89c08167f1d117e3022ef139f09
parent37d1bdb8a7b700b900dd83c8c5c85296f5c3c17a
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.pie: fix register constraint in m68k assembly

lea needs an address register as destination.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/pie.zig+1-1
...@@ -152,7 +152,7 @@ inline fn getDynamicSymbol() [*]const elf.Dyn {...@@ -152,7 +152,7 @@ inline fn getDynamicSymbol() [*]const elf.Dyn {
152 \\ .hidden _DYNAMIC152 \\ .hidden _DYNAMIC
153 \\ lea _DYNAMIC - . - 8, %[ret]153 \\ lea _DYNAMIC - . - 8, %[ret]
154 \\ lea (%[ret], %%pc), %[ret]154 \\ lea (%[ret], %%pc), %[ret]
155 : [ret] "=r" (-> [*]const elf.Dyn),155 : [ret] "=a" (-> [*]const elf.Dyn),
156 ),156 ),
157 .microblaze, .microblazeel => asm volatile (157 .microblaze, .microblazeel => asm volatile (
158 \\ .weak _DYNAMIC158 \\ .weak _DYNAMIC