aboutsummaryrefslogtreecommitdiff
path: root/test/src/Debugger.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-10-29 21:17:11 +0100
committerAndrew Kelley <andrew@ziglang.org>2024-10-29 17:27:42 -0700
commit6ff267dc2635177b57bda1d398374ab96ed40179 (patch)
tree7ba6df1b5ec1a308c6166b1990247e4015622857 /test/src/Debugger.zig
parent4661705a0e9b28ea008ffb85258daf1d5510b054 (diff)
downloadzig-6ff267dc2635177b57bda1d398374ab96ed40179.tar.gz
zig-6ff267dc2635177b57bda1d398374ab96ed40179.zip
link/Elf: ensure we always sort all relocations by r_offset in -r mode
According to a comment in mold, this is the expected (and desired) condition by the linkers, except for some architectures (RISCV and Loongarch) where this condition does not have to upheld. If you follow the changes in this patch and in particular doc comments I have linked the comment/code in mold that explains and implements this. I have also modified `testEhFrameRelocatable` test to now test both cases such that `zig ld -r a.o b.o -o c.o` and `zig ld -r b.o a.o -o d.o`. In both cases, `c.o` and `d.o` should produce valid object files which was not the case before this patch.
Diffstat (limited to 'test/src/Debugger.zig')
0 files changed, 0 insertions, 0 deletions