Commit Graph
91 Commits
Author SHA1 Message Date
kcbanner f5a911290e test/link: add explicit lib name test 2026-06-23 00:27:18 -04:00
kcbanner c0b07b144b test/link: fixup tls snapshots 2026-06-23 00:27:17 -04:00
kcbanner 0bacbd4daa test/link: add tls test 2026-06-23 00:27:17 -04:00
kcbanner ae41a2b8ac Coff: fix .ctor / .dtor generation, the length fields need to be their own nodes, otherwise child nodes will overwrite them
test/link: add .ctor / .dtor tests for mingw
test/link: include optimize_mode in the target, and only enable .Debug targets for now
2026-06-23 00:27:17 -04:00
kcbanner bd50917c0d Coff: emit weak externals 2026-06-23 00:27:17 -04:00
kcbanner 1b95427715 Coff: add support for .is_dll_import
x86_64: emit the correct encodings for loading / calling .is_dll_import externs
Coff: fix emitting an empty import directory
objdump: add --exports=sort for sorting implibs in snapshots (self-hosted outputs members in a different order than llvm)
objdump: fix some missed redactions / filters / elements calls
test: add dllimport standalone test
2026-06-23 00:27:17 -04:00
kcbanner 72bc140ad1 test/link: separate out shared lib tests
- Fixup snapshot naming
- Fixup verifyObjdumps so we can dump other artifacts
- Add llvm link_targets for comparison
2026-06-23 00:27:17 -04:00
kcbanner 344d0ab72c Coff: handle relocations of absolute symbols
test/link: add absolute symbol tests
2026-06-23 00:27:16 -04:00
kcbanner c14bc1bbe0 Coff: fixup alignment of second linker member accessors
test/link: update emit-static-lib test to check array relocs
2026-06-23 00:27:16 -04:00
kcbanner e20860765e test/link: rework test case names to show the target
Prior to this, it was hard to track down commands to reproduce failing tests in --verbose output
2026-06-23 00:27:16 -04:00
kcbanner de297890e3 test/link: add emit-static-lib 2026-06-23 00:27:16 -04:00
kcbanner 1c6d19b0ff tests: more work on the linker snapshot testing framework
build: add the ability to test the output of a Run step against a snapshot
objdump:  add --redact, --omit-element, --snapshot, and --only-symbol
2026-06-23 00:27:14 -04:00
kcbanner ab46b82354 test: Starting work on the new linker tests 2026-06-23 00:26:57 -04:00
Carl Åstholm 5d5e89aa8d Promote linker test cases to packages 2024-04-07 16:05:54 -07:00
Luuk de Gram 196ba706a0 wasm: gc fixes and re-enable linker tests
Certain symbols were left unmarked, meaning they would not be emit into
the final binary incorrectly. We now mark the synthetic symbols to ensure
they are emit as they are already created under the circumstance they're
needed for. This also re-enables disabled tests that were left disabled
in a previous merge conflict.
Lastly, this adds the shared-memory test to the test harnass as it was
previously forgotten and therefore regressed.
2024-02-29 15:24:08 +01:00
Jakub Konka 03b33b0f01 test/link/macho: migrate all tests to the new test matrix 2024-01-24 12:34:40 +01:00
Jakub Konka 2b3ac3e82f test/link/macho: upgrade tbdv3 test 2024-01-24 12:34:40 +01:00
Jakub Konka a3f68c6fa2 test/link/macho: upgrade unwind info tests 2024-01-24 12:34:40 +01:00
Jakub Konka d500caaa62 test/link/macho: test stacksize option 2024-01-24 12:34:40 +01:00
Jakub Konka b70fedee7e test/link/macho: upgrade search strategy test 2024-01-24 12:34:40 +01:00
Jakub Konka 7dc6900018 test/link/macho: remove converted standalone tests 2024-01-24 12:34:40 +01:00
Jakub Konka 4dc1907a88 test/link/macho: upgrade strict validation of layout test 2024-01-24 12:34:40 +01:00
Jakub Konka a25b780aad test/link/macho: upgrade entry and entry in archive tests 2024-01-24 12:34:40 +01:00
Jakub Konka 82a044f4f7 test/link/macho: upgrade empty object test 2024-01-24 12:34:40 +01:00
Jakub Konka a454ba7908 test/link/macho: upgrade dylib test 2024-01-24 12:34:40 +01:00
Jakub Konka 181e476915 test/link/macho: upgrade dead_strip_dylibs test 2024-01-24 12:34:40 +01:00
Jakub Konka 49a4b42995 test/link/macho: upgrade tls test 2024-01-24 12:34:40 +01:00
Jakub Konka 105655857f test/link/macho: upgrade weak framework test 2024-01-24 12:34:40 +01:00
Jakub Konka e96f8b817a test/link/macho: upgrade weak library test 2024-01-24 12:34:40 +01:00
Jakub Konka 2c0c86944e test/link/macho: upgrade and migrate headerpad test 2024-01-24 12:34:40 +01:00
Jakub Konka 49c11e0c34 test/link/macho: upgrade and migrate needed_library test 2024-01-24 12:34:39 +01:00
Jakub Konka d93a0763d4 test/link/link: pass build options to elf and macho tests 2024-01-24 12:34:39 +01:00
Jakub Konka 6cdcf61a5c test/link/macho: upgrade and migrate dead_strip test 2024-01-24 12:34:39 +01:00
Jakub Konka 11524e4d0c test/link/macho: migrate entry_in_dylib test to new test format 2024-01-24 12:34:39 +01:00
Jakub Konka 7566a8fbd8 test/link: spawn ELF and MachO tests from the same root test/link/link.zig 2023-11-10 13:44:43 +01:00
Jakub Konka aac04b4a5a elf: port some of zld's test harness 2023-09-26 21:07:47 +02:00
Andrew Kelley 1df4efc4bc disable failing wasm linking tests
These started failing after the LLVM 17 upgrade.

See tracking issues #16937 and #16938
2023-09-19 09:37:53 -07:00
Jakub Konka 573bb77ab6 macho: add smoke test for re-exports in static libs 2023-08-16 12:19:34 +02:00
Jakub Konka 16f09127b5 link-test: add matching test case for unwind info when MH_SUBSECTIONS_VIA_SYMBOLS is not set 2023-08-02 22:12:26 +02:00
Jakub Konka f821543e4b Merge pull request #16553 from ziglang/issue-11896
macho: fix parsing of TBDv3 dylib stubs
2023-07-26 18:22:59 +02:00
Jakub Konka 780f0b872a link-test: add test case for MachO bug 16308 2023-07-26 13:38:24 +02:00
Jakub Konka 5131d074d8 link-test: add test for TBDv3 updated parsing logic 2023-07-26 08:10:53 +02:00
Xavier Bouchoux 8142bc20ea test: linking static libraries built from intermediary object files 2023-07-11 11:46:59 +02:00
Jakub Konka c2554cf0f1 link-test: remove now obsolete UUID test for MachO 2023-06-19 11:33:06 +02:00
Andrew Kelley 13aa7871b2 Merge pull request #15101 from motiejus/glibc_compat
glibc: add backwards compatibility for some symbols
2023-04-06 17:15:58 -04:00
Jakub Konka 5d0bb50e3d link-test: add test for entry in a dynamic library for MachO 2023-04-01 14:22:44 +02:00
Jakub Konka 3874df839d link-test: add test for entry in a static archive for MachO 2023-04-01 14:22:44 +02:00
Motiejus Jakštys 652e8cf864 glibc compat: add a test and README 2023-03-28 22:29:20 +03:00
Andrew Kelley 66eb910fe4 remove redundant link test 2023-03-15 10:48:15 -07:00
Andrew Kelley 15c4fae1c9 re-enable the simple standalone tests 2023-03-15 10:48:14 -07:00