public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gold: don't invoke IA32 syscall in x86_64 assembly testcase
@ 2022-03-12 14:21 Xi Ruoyao
  2022-03-31 10:21 ` Xi Ruoyao
  2022-03-31 10:41 ` Jan Beulich
  0 siblings, 2 replies; 9+ messages in thread
From: Xi Ruoyao @ 2022-03-12 14:21 UTC (permalink / raw)
  To: binutils

pr17704a_test.s is a x86_64 assembly file, but it invokes IA32 exit
syscall with "int 0x80".  This causes a segfault on kernels with
CONFIG_IA32_EMULATION disabled.

gold/

	* testsuite/pr17704a_test.s (_start): Invoke x86_64 exit syscall
	instead of its IA32 counterpart.
---
 gold/testsuite/pr17704a_test.s | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/gold/testsuite/pr17704a_test.s b/gold/testsuite/pr17704a_test.s
index 2b39e649f9e..8a645496faf 100644
--- a/gold/testsuite/pr17704a_test.s
+++ b/gold/testsuite/pr17704a_test.s
@@ -14,10 +14,10 @@ _start:
 	leaq	bar(%rip), %rsi
 	testb	$1, %sil
 	je	.L9
-	mov $1, %eax
-	mov $1, %ebx
-	int $0x80
+	mov $60, %rax
+	mov $1, %rdi
+	syscall
 .L9:
-	mov $1, %eax
-	mov $0, %ebx
-	int $0x80
+	mov $60, %rax
+	mov $0, %rdi
+	syscall
-- 
2.35.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-18  7:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-12 14:21 [PATCH] gold: don't invoke IA32 syscall in x86_64 assembly testcase Xi Ruoyao
2022-03-31 10:21 ` Xi Ruoyao
2022-03-31 10:41 ` Jan Beulich
2022-03-31 15:03   ` Xi Ruoyao
2022-03-31 16:05     ` Cary Coutant
2022-04-08 23:25       ` Xi Ruoyao
2022-04-28 16:15         ` [PING^2 PATCH] " Xi Ruoyao
2022-05-06 15:03           ` [PING^3 " Xi Ruoyao
2022-05-18  7:40             ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).