am f2d8c357: Merge "Remove misleading arm/arm64 PIC_SYM."

* commit 'f2d8c357eec1bbc4e7441942dfc338ad1d9a207a':
  Remove misleading arm/arm64 PIC_SYM.
This commit is contained in:
Elliott Hughes 2014-08-08 16:21:23 +00:00 committed by Android Git Automerger
commit b763b7d6d5
9 changed files with 20 additions and 32 deletions

View File

@ -107,7 +107,7 @@ ENTRY(_longjmp)
/* validation failed, die die die. */
botch:
bl PIC_SYM(longjmperror, PLT)
bl PIC_SYM(abort, PLT)
bl longjmperror
bl abort
b . - 8 /* Cannot get here */
END(_longjmp)

View File

@ -40,5 +40,5 @@ ENTRY(abort)
.cfi_def_cfa_offset 8
.cfi_rel_offset r3, 0
.cfi_rel_offset r14, 4
bl PIC_SYM(__libc_android_abort, PLT)
bl __libc_android_abort
END(abort)

View File

@ -56,7 +56,7 @@ ENTRY(setjmp)
.cfi_rel_offset r14, 4
mov r0, #0x00000000
bl PIC_SYM(sigblock, PLT)
bl sigblock
mov r1, r0
ldmfd sp!, {r0, r14}
@ -108,7 +108,7 @@ ENTRY(longjmp)
.cfi_adjust_cfa_offset 4
mov r0, r2
bl PIC_SYM(sigsetmask, PLT)
bl sigsetmask
add sp, sp, #4 /* unalign the stack */
.cfi_adjust_cfa_offset -4
@ -147,7 +147,7 @@ ENTRY(longjmp)
/* validation failed, die die die. */
botch:
bl PIC_SYM(longjmperror, PLT)
bl PIC_SYM(abort, PLT)
bl longjmperror
bl abort
b . - 8 /* Cannot get here */
END(longjmp)

View File

@ -50,8 +50,8 @@
ENTRY(sigsetjmp)
teq r1, #0
beq PIC_SYM(_setjmp, PLT)
b PIC_SYM(setjmp, PLT)
beq _setjmp
b setjmp
END(sigsetjmp)
.L_setjmp_magic:
@ -61,6 +61,6 @@ ENTRY(siglongjmp)
ldr r2, .L_setjmp_magic
ldr r3, [r0]
teq r2, r3
beq PIC_SYM(_longjmp, PLT)
b PIC_SYM(longjmp, PLT)
beq _longjmp
b longjmp
END(siglongjmp)

View File

@ -50,10 +50,4 @@
#undef __bionic_asm_function_type
#define __bionic_asm_function_type #function
#if defined(__ELF__) && defined(PIC)
#define PIC_SYM(x,y) x ## ( ## y ## )
#else
#define PIC_SYM(x,y) x
#endif
#endif /* !_ARM_ASM_H_ */

View File

@ -105,7 +105,7 @@ ENTRY(_longjmp)
/* validation failed, die die die */
.L_fail:
bl PIC_SYM(longjmperror, PLT)
bl PIC_SYM(abort, PLT)
bl longjmperror
bl abort
b . - 8 /* Cannot get here */
END(_longjmp)

View File

@ -45,7 +45,7 @@ ENTRY(setjmp)
stp x0, x30, [sp, #-16]!
mov x0, xzr
bl PIC_SYM(sigblock, PLT)
bl sigblock
mov w1, w0
ldp x0, x30, [sp], #16
@ -117,7 +117,7 @@ ENTRY(longjmp)
/* validation failed, die die die */
.L_fail:
bl PIC_SYM(longjmperror, PLT)
bl PIC_SYM(abort, PLT)
bl longjmperror
bl abort
b . - 8 /* Cannot get here */
END(longjmp)

View File

@ -35,8 +35,8 @@
*/
ENTRY(sigsetjmp)
cbz w1, PIC_SYM(_setjmp, PLT)
b PIC_SYM(setjmp, PLT)
cbz w1, _setjmp
b setjmp
END(sigsetjmp)
.L_setjmp_magic:
@ -46,6 +46,6 @@ ENTRY(siglongjmp)
ldr w2, .L_setjmp_magic
ldr w3, [x0]
cmp w2, w3
b.eq PIC_SYM(_longjmp, PLT)
b PIC_SYM(longjmp, PLT)
b.eq _longjmp
b longjmp
END(siglongjmp)

View File

@ -45,10 +45,4 @@
#undef __bionic_asm_function_type
#define __bionic_asm_function_type %function
#if defined(__ELF__) && defined(PIC)
#define PIC_SYM(x,y) x ## ( ## y ## )
#else
#define PIC_SYM(x,y) x
#endif
#endif /* _AARCH64_ASM_H_ */