ref: d764f1b643106a1e028f18104fe458a53ee39913
parent: 53acc44c82ab004ac565970c3f8f4d80894ed761
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sun Aug 26 06:24:49 EDT 2018
[lib/crt] Fix amd64 crts Jp means jump if parity. The intended opcode is jmp.
--- a/lib/crt/amd64-sysv-linux/crt.s
+++ b/lib/crt/amd64-sysv-linux/crt.s
@@ -5,4 +5,4 @@
_start:
call main
movl %eax, %edi
- call exit
+ jmp exit
--- a/lib/crt/amd64-sysv-netbsd/crt.s
+++ b/lib/crt/amd64-sysv-netbsd/crt.s
@@ -14,4 +14,4 @@
_start:
call main
movl %eax, %edi
- jp exit
+ jmp exit
--- a/lib/crt/amd64-sysv-openbsd/crt.s
+++ b/lib/crt/amd64-sysv-openbsd/crt.s
@@ -15,9 +15,4 @@
_start:
call main
movl %eax, %edi
- call exit
-
- .data
- .global __guard_local
-__guard_local:
- .long 0
+ jmp exit