aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha')
-rw-r--r--sysdeps/alpha/dl-machine.h8
-rw-r--r--sysdeps/alpha/setjmp.S6
2 files changed, 11 insertions, 3 deletions
diff --git a/sysdeps/alpha/dl-machine.h b/sysdeps/alpha/dl-machine.h
index d3eb242c04..3f65ae99a3 100644
--- a/sysdeps/alpha/dl-machine.h
+++ b/sysdeps/alpha/dl-machine.h
@@ -353,6 +353,14 @@ elf_machine_fixup_plt(struct link_map *l, const Elf64_Rela *reloc,
hasn't made it into Icache yet, so there's nothing to clean up. */
}
+/* Return the final value of a plt relocation. */
+static inline Elf64_Addr
+elf_machine_plt_value (struct link_map *map, const Elf64_Rela *reloc,
+ Elf64_Addr value)
+{
+ return value + reloc->r_addend;
+}
+
#endif /* !dl_machine_h */
#ifdef RESOLVE
diff --git a/sysdeps/alpha/setjmp.S b/sysdeps/alpha/setjmp.S
index 48fe33b3ec..ae3ceb517d 100644
--- a/sysdeps/alpha/setjmp.S
+++ b/sysdeps/alpha/setjmp.S
@@ -70,11 +70,11 @@ END(__sigsetjmp)
/* Put these traditional entry points in the same file so that we can
elide much of the nonsense in trying to jmp to the real function. */
-ENTRY(_setjmp)
+ENTRY(__setjmp)
ldgp gp, 0(pv)
mov 0, a1
br $sigsetjmp_local
-END(_setjmp)
+END(__setjmp)
ENTRY(setjmp)
ldgp gp, 0(pv)
@@ -82,5 +82,5 @@ ENTRY(setjmp)
br $sigsetjmp_local
END(setjmp)
-weak_extern(_setjmp)
+weak_alias(__setjmp, _setjmp)
weak_extern(setjmp)