diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-08-12 01:05:24 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-08-12 01:05:24 +0000 |
commit | 5ae8f3912303a67574ac7c5c87970a0da1cc6ca5 (patch) | |
tree | 8d827a0b0e30bc32010dfd78c370561617261961 /libexec/ld.so/alpha | |
parent | 718ee9c261dd75c43164ea69c0c25a11734a99bc (diff) |
Add support for REL type relocations, all currently supported arch
use only RELA type relocations, but that could change. ok art@
Diffstat (limited to 'libexec/ld.so/alpha')
-rw-r--r-- | libexec/ld.so/alpha/archdep.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libexec/ld.so/alpha/archdep.h b/libexec/ld.so/alpha/archdep.h index 8ec8942cd6d..510da23b5ec 100644 --- a/libexec/ld.so/alpha/archdep.h +++ b/libexec/ld.so/alpha/archdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: archdep.h,v 1.6 2002/05/24 03:44:37 deraadt Exp $ */ +/* $OpenBSD: archdep.h,v 1.7 2002/08/12 01:05:23 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -48,6 +48,13 @@ #include "util.h" static inline void +RELOC_REL(Elf64_Rel *r, const Elf64_Sym *s, Elf64_Addr *p, unsigned long v) +{ + /* Alpha does not use REL type relocations */ + _dl_exit(20); +} + +static inline void RELOC_RELA(Elf64_Rela *r, const Elf64_Sym *s, Elf64_Addr *p, unsigned long v) { extern Elf_Addr _GLOBAL_OFFSET_TABLE_[]; |