mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 15:12:31 +00:00
6ff267dc26
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. |
||
---|---|---|
.. | ||
bss | ||
common_symbols | ||
common_symbols_alignment | ||
glibc_compat | ||
interdependent_static_c_libs | ||
static_libs_from_object_files | ||
wasm | ||
build.zig | ||
build.zig.zon | ||
elf.zig | ||
link.zig | ||
macho.zig |