summaryrefslogtreecommitdiffstats
path: root/lib/libc/arm/gen/_setjmp.S
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-09-09 22:24:01 +0000
committerian <ian@FreeBSD.org>2014-09-09 22:24:01 +0000
commit8a1958876831eb70c472ced915114915eafb844a (patch)
treee54bc1142cf9ebc5791f625d6b51d3604bdf427e /lib/libc/arm/gen/_setjmp.S
parent30e366f556dde8950782845d6a3bdbc2c5a84b6f (diff)
downloadFreeBSD-src-8a1958876831eb70c472ced915114915eafb844a.zip
FreeBSD-src-8a1958876831eb70c472ced915114915eafb844a.tar.gz
MFC r270882, r270930:
In ARM asm code, ensure that every ENTRY(foo) has a matching END(foo). The EABI unwind info requires a .fnend for every .fnstart, and newer binutils will complain about seeing two .fnstart in a row. This change allows newer tools to compile our code. Do not generate unwind info in asm functions if _STANDALONE is defined. The .fnend op causes the assembler to emit RELOC references to unwind support functions that don't exist in libstand. Approved by: re(gjb)
Diffstat (limited to 'lib/libc/arm/gen/_setjmp.S')
-rw-r--r--lib/libc/arm/gen/_setjmp.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/arm/gen/_setjmp.S b/lib/libc/arm/gen/_setjmp.S
index b475f1e..387f8a9 100644
--- a/lib/libc/arm/gen/_setjmp.S
+++ b/lib/libc/arm/gen/_setjmp.S
@@ -89,6 +89,7 @@ ENTRY(_setjmp)
mov r0, #0x00000000
RET
+END(_setjmp)
.L_setjmp_magic:
.word _JB_MAGIC__SETJMP
@@ -140,3 +141,4 @@ botch:
#else
b .
#endif
+END(_longjmp)
OpenPOWER on IntegriCloud