Fix linker warnings for x86 tests

This commit is contained in:
Duncan Ogilvie
2026-03-24 16:57:18 +01:00
committed by Kyle Elliott
parent dc1f1d498c
commit b3fcd705ae
+6 -6
View File
@@ -58,7 +58,7 @@
\
SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
\
.section "__x86_test_table", "a" ; \
.section "__x86_test_table", "aw" ; \
.balign 128 ; \
1: \
.quad 3f ; \
@@ -84,7 +84,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
# define TEST_END \
6: \
.cfi_endproc ; \
.section "__x86_test_table", "a" ; \
.section "__x86_test_table", "aw" ; \
.quad 0 ; \
.text ; \
ud2 ;
@@ -94,7 +94,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
6: \
jmp SYMBOL(__x86_save_state_after) ; \
.cfi_endproc ; \
.section "__x86_test_table", "a" ; \
.section "__x86_test_table", "aw" ; \
.quad 0 ; \
.text ; \
ud2 ;
@@ -109,7 +109,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
#define OF | (1 << 11)
#define TEST_IGNORE_FLAGS(...) \
.section "__x86_test_table", "a" ; \
.section "__x86_test_table", "aw" ; \
.quad 0 __VA_ARGS__ ; \
.text ;
@@ -317,7 +317,7 @@ SYMBOL(__x86_save_state_after):
/* Create a symbol that represents the start of the test information
* table. */
.section "__x86_test_table", "a"
.section "__x86_test_table", "aw"
.balign 128
.globl SYMBOL(__x86_test_table_begin)
SYMBOL(__x86_test_table_begin):
@@ -567,6 +567,6 @@ SYMBOL(__x86_test_table_begin):
#endif
/* Create a symbol that represents the end of the test information table. */
.section "__x86_test_table", "a"
.section "__x86_test_table", "aw"
.globl SYMBOL(__x86_test_table_end)
SYMBOL(__x86_test_table_end):