Skip to content

Commit e0ab88b

Browse files
committed
Fix linker warnings for x86 tests
1 parent 98eead0 commit e0ab88b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/X86/Tests.S

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
\
5959
SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
6060
\
61-
.section "__x86_test_table", "a" ; \
61+
.section "__x86_test_table", "aw" ; \
6262
.balign 128 ; \
6363
1: \
6464
.quad 3f ; \
@@ -84,7 +84,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
8484
# define TEST_END \
8585
6: \
8686
.cfi_endproc ; \
87-
.section "__x86_test_table", "a" ; \
87+
.section "__x86_test_table", "aw" ; \
8888
.quad 0 ; \
8989
.text ; \
9090
ud2 ;
@@ -94,7 +94,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
9494
6: \
9595
jmp SYMBOL(__x86_save_state_after) ; \
9696
.cfi_endproc ; \
97-
.section "__x86_test_table", "a" ; \
97+
.section "__x86_test_table", "aw" ; \
9898
.quad 0 ; \
9999
.text ; \
100100
ud2 ;
@@ -109,7 +109,7 @@ SYMBOL(FUNC_NAME(instr_name, num_args)): ; \
109109
#define OF | (1 << 11)
110110

111111
#define TEST_IGNORE_FLAGS(...) \
112-
.section "__x86_test_table", "a" ; \
112+
.section "__x86_test_table", "aw" ; \
113113
.quad 0 __VA_ARGS__ ; \
114114
.text ;
115115

@@ -317,7 +317,7 @@ SYMBOL(__x86_save_state_after):
317317

318318
/* Create a symbol that represents the start of the test information
319319
* table. */
320-
.section "__x86_test_table", "a"
320+
.section "__x86_test_table", "aw"
321321
.balign 128
322322
.globl SYMBOL(__x86_test_table_begin)
323323
SYMBOL(__x86_test_table_begin):
@@ -567,6 +567,6 @@ SYMBOL(__x86_test_table_begin):
567567
#endif
568568

569569
/* Create a symbol that represents the end of the test information table. */
570-
.section "__x86_test_table", "a"
570+
.section "__x86_test_table", "aw"
571571
.globl SYMBOL(__x86_test_table_end)
572572
SYMBOL(__x86_test_table_end):

0 commit comments

Comments
 (0)