From 7a4fca28c65a3991b2d6cf56baa17d75e875abb1 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 14 Jul 2001 18:24:41 +0000 Subject: [PATCH] Add a GOTSYM which emits the right stuff to GOT symbols under ELF and/or a.out. --- sys/arch/arm/include/asm.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm/include/asm.h b/sys/arch/arm/include/asm.h index 7d02e2f88e91..445e2fcb91c7 100644 --- a/sys/arch/arm/include/asm.h +++ b/sys/arch/arm/include/asm.h @@ -1,4 +1,4 @@ -/* $NetBSD: asm.h,v 1.2 2001/04/26 23:20:02 bjh21 Exp $ */ +/* $NetBSD: asm.h,v 1.3 2001/07/14 18:24:41 matt Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -94,6 +94,12 @@ #define ASMSTR .asciz +#if defined(__ELF__) && defined(PIC) +#define GOTSYM(x) x(GOT) +#else +#define GOTSYM(x) x +#endif + #ifdef __ELF__ #define RCSID(x) .section ".ident"; .asciz x #else