1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00

Fix assembler warnings for a testcase.

Fixes:

Testing execstack-if-needed ... {standard input}: Assembler messages:
{standard input}:4: Warning: setting incorrect section type for .note.GNU-stack
{standard input}:4: Warning: setting incorrect section attributes for .note.GNU-stack

Signed-off-by: Martin Liska <mliska@suse.cz>
This commit is contained in:
Martin Liska 2022-04-20 10:12:09 +02:00
parent 8398d592de
commit 32e0863675

View File

@ -20,7 +20,7 @@ cat <<EOF | $CC -c -xassembler -o $t/a.o -
.globl main
main:
ret
.section .note.GNU-stack, "ax", @note
.section .note.GNU-stack, "x", @progbits
EOF
$CC -B. -o $t/exe $t/a.o >& /dev/null