0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
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.
History 2024-10-29 17:27:42 -07:00
..
behavior Merge pull request #21697 from mlugg/callconv 2024-10-23 16:48:33 +01:00
c_abi mips: fix C ABI compatibility 2024-09-07 23:46:30 -07:00
c_import std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
cases Merge pull request #21826 from Snektron/spirv-vulkan 2024-10-29 19:58:51 +01:00
incremental incremental: disable flaky test 2024-10-18 09:46:03 +01:00
link link/Elf: ensure we always sort all relocations by r_offset in -r mode 2024-10-29 17:27:42 -07:00
src spirv: forbid merging logical pointers 2024-10-27 16:31:45 +01:00
standalone tests: add tests for is_dll_import externs 2024-10-22 18:46:14 -04:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig Merge pull request #21257 from mlugg/computed-goto-3 2024-09-04 18:31:28 -07:00
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig remove test/cbe.zig 2024-03-28 15:24:01 +02:00
compare_output.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
compile_errors.zig cases: update for new error wording, add coverage for field/decl name conflict 2024-08-29 23:43:52 +01:00
gen_h.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
llvm_targets.zig test: Remove some loongarch32 triples that were erroneously added to llvm_targets. 2024-10-16 01:10:35 +02:00
nvptx.zig zig build system: change target, compilation, and module APIs 2024-01-01 17:51:18 -07:00
run_translated_c.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
stack_traces.zig test/stack_traces.zig: add err union switch case 2024-01-18 15:10:32 +11:00
tests.zig test: Add riscv(32,64)-linux-(none,musl) with soft float to module tests. 2024-10-15 20:25:26 +02:00
translate_c.zig test: update for CallingConvention changes 2024-10-19 19:15:23 +01:00