diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2017-03-22 07:31:36 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2017-03-22 07:31:36 +0000 |
commit | 37e6cfe3b2764349780ec82b74185c1e01a6112a (patch) | |
tree | ce7af09d3265da1ff55f1abfa114e58a84cbfb01 | |
parent | eb75ff7660f1d017931c5187e30c804ac710384f (diff) |
Use the hidden aliases to avoid PLT entries for {,_}{set,long}jmp
Set the size of the sig{set,long}jmp symbols
testing help jsg@
ok kettenis@
-rw-r--r-- | lib/libc/arch/aarch64/gen/sigsetjmp.S | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/libc/arch/aarch64/gen/sigsetjmp.S b/lib/libc/arch/aarch64/gen/sigsetjmp.S index 186859bb52f..559985459a4 100644 --- a/lib/libc/arch/aarch64/gen/sigsetjmp.S +++ b/lib/libc/arch/aarch64/gen/sigsetjmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: sigsetjmp.S,v 1.1 2017/01/11 18:09:24 patrick Exp $ */ +/* $OpenBSD: sigsetjmp.S,v 1.2 2017/03/22 07:31:35 guenther Exp $ */ /*- * Copyright (c) 2014 The FreeBSD Foundation * All rights reserved. @@ -28,15 +28,14 @@ * SUCH DAMAGE. */ -#include <machine/asm.h> - +#include "DEFS.h" #include <machine/setjmp.h> ENTRY(sigsetjmp) cmp x1, #0 - b.eq _C_LABEL(_setjmp) - b _C_LABEL(setjmp) -//END(sigsetjmp) + b.eq _HIDDEN(_setjmp) + b _HIDDEN(setjmp) +END(sigsetjmp) ENTRY(siglongjmp) /* Load the _setjmp magic */ @@ -45,9 +44,9 @@ ENTRY(siglongjmp) /* Check the magic */ cmp x2, x3 - b.eq _C_LABEL(_longjmp) - b _C_LABEL(longjmp) + b.eq _HIDDEN(_longjmp) + b _HIDDEN(longjmp) .Lmagic: .align 3 .quad _JB_MAGIC__SETJMP -//END(siglongjmp) +END(siglongjmp) |