Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Change way PIC stuff is emitted for ELF...
details: https://anonhg.NetBSD.org/src/rev/5a7e3b040260
branches: trunk
changeset: 512758:5a7e3b040260
user: matt <matt%NetBSD.org@localhost>
date: Mon Jul 16 05:43:32 2001 +0000
description:
Change way PIC stuff is emitted for ELF to be more flexible.
diffstat:
sys/arch/arm/include/asm.h | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 242615011e78 -r 5a7e3b040260 sys/arch/arm/include/asm.h
--- a/sys/arch/arm/include/asm.h Mon Jul 16 05:42:50 2001 +0000
+++ b/sys/arch/arm/include/asm.h Mon Jul 16 05:43:32 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.3 2001/07/14 18:24:41 matt Exp $ */
+/* $NetBSD: asm.h,v 1.4 2001/07/16 05:43:32 matt Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -95,9 +95,13 @@
#define ASMSTR .asciz
#if defined(__ELF__) && defined(PIC)
-#define GOTSYM(x) x(GOT)
+#ifdef __STDC__
+#define PIC_SYM(x,y) x ## ( ## y ## )
#else
-#define GOTSYM(x) x
+#define PIC_SYM(x,y) x/**/(/**/y/**/)
+#endif
+#else
+#define PIC_SYM(x,y) x
#endif
#ifdef __ELF__
Home |
Main Index |
Thread Index |
Old Index