zig/test/link
Jakub Konka 6ff267dc26 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.
2024-10-29 17:27:42 -07:00
..
bss Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
common_symbols Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
common_symbols_alignment Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
glibc_compat target.zig: Constrain aarch64 to glibc version 2.17 or later 2024-06-06 09:36:16 -07:00
interdependent_static_c_libs Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
static_libs_from_object_files Change deprecated b.host to b.graph.host in tests and Zig's build.zig 2024-06-13 10:49:06 -04:00
wasm test: Update wasm/infer-features based on what LLVM produces. 2024-09-19 18:20:21 -07:00
build.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
build.zig.zon Promote linker test cases to packages 2024-04-07 16:05:54 -07:00
elf.zig link/Elf: ensure we always sort all relocations by r_offset in -r mode 2024-10-29 17:27:42 -07:00
link.zig linker tests: avoid trivially unnecessary allocation 2024-10-10 14:21:52 -07:00
macho.zig test/link/macho: test reporting undefined special symbols 2024-10-09 21:39:45 +02:00