diff options
author | Luis Machado <luisgpm@br.ibm.com> | 2010-02-12 07:55:01 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-02-12 07:55:01 -0800 |
commit | 41288fbb784716ee01e4b6d84299a71081431ccb (patch) | |
tree | 43fee4a1f91798adeff662c0b793cad75ed49d42 /sysdeps/powerpc/powerpc32/dl-machine.h | |
parent | c62cf60c6b37850ee68ea824666eadab99ff718f (diff) | |
download | glibc-41288fbb784716ee01e4b6d84299a71081431ccb.tar.gz glibc-41288fbb784716ee01e4b6d84299a71081431ccb.tar.xz glibc-41288fbb784716ee01e4b6d84299a71081431ccb.zip |
Cleanup old obsolete PPC_REL16 checks
Diffstat (limited to 'sysdeps/powerpc/powerpc32/dl-machine.h')
-rw-r--r-- | sysdeps/powerpc/powerpc32/dl-machine.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/powerpc/powerpc32/dl-machine.h b/sysdeps/powerpc/powerpc32/dl-machine.h index 6f8d0f506e..5351d9691d 100644 --- a/sysdeps/powerpc/powerpc32/dl-machine.h +++ b/sysdeps/powerpc/powerpc32/dl-machine.h @@ -41,16 +41,13 @@ static inline Elf32_Addr * __attribute__ ((const)) ppc_got (void) { Elf32_Addr *got; -#ifdef HAVE_ASM_PPC_REL16 + asm ("bcl 20,31,1f\n" "1: mflr %0\n" " addis %0,%0,_GLOBAL_OFFSET_TABLE_-1b@ha\n" " addi %0,%0,_GLOBAL_OFFSET_TABLE_-1b@l\n" : "=b" (got) : : "lr"); -#else - asm (" bl _GLOBAL_OFFSET_TABLE_-4@local" - : "=l" (got)); -#endif + return got; } |