test: port the archive-driven linker observers to ww

archive_test.ww absorbs 610_arch and 632_w6l_manyflags: archive
member selectivity through a load-bearing undefined @symbol extern
(link exit 0, run exit 7), and the -L capacity table {1,64,65,100,
128} against both w6l and w6l_ww with an ET_EXEC check per leg. ar is
/usr/bin/ar via runcommand; the junk -L flags are real argv entries
instead of a 16KB shell string.
This commit is contained in:
2026-08-08 14:47:46 +09:00
parent 4f9ba86058
commit 0c98500603
4 changed files with 171 additions and 335 deletions

View File

@@ -395,7 +395,8 @@ ASM_WW_TARGETS = $(ASM_WW_TESTS:%=wwtest/%)
# layout, program-header split and BSS trim, archive selectivity,
# linker flag capacity, assembler input gates). Compiler/driver gates
# like test/sep: they run under test-compiler.
OBJECT_WW_TESTS = test/object/elfobj_test.ww test/object/link_test.ww
OBJECT_WW_TESTS = test/object/elfobj_test.ww test/object/link_test.ww \
test/object/archive_test.ww
OBJECT_WW_TARGETS = $(OBJECT_WW_TESTS:%=wwtest/%)
BOOTSTRAP_WRAPPER_SOURCES = test/wcc/950_selfcheck.c \
test/wcc/991_w6a_ww.c \