From 5ae8f3912303a67574ac7c5c87970a0da1cc6ca5 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Mon, 12 Aug 2002 01:05:24 +0000 Subject: Add support for REL type relocations, all currently supported arch use only RELA type relocations, but that could change. ok art@ --- libexec/ld.so/alpha/archdep.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libexec/ld.so/alpha') 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 @@ -47,6 +47,13 @@ #include "syscall.h" #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) { -- cgit v1.2.3