summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorsirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-01 08:34:13 +0000
committersirl <sirl@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-01 08:34:13 +0000
commit74b8f08f054d5031d656e21abc4f453269656671 (patch)
tree94c60525536b0f12eecc98a454e53ba97376db99 /gcc
parent68ac3ca4eb77c5dbcb12e1f5649488a61e0094d9 (diff)
downloadgcc-74b8f08f054d5031d656e21abc4f453269656671.tar.gz
2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* ginclude/ppc-asm.h (JUMP_TARGET): New macro. * config/rs6000/tramp.asm: Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/tramp.asm2
-rw-r--r--gcc/ginclude/ppc-asm.h8
3 files changed, 14 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6af1446ef31..666edafc092 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
+ * config/rs6000/tramp.asm: Use it.
+
2001-12-01 Zack Weinberg <zack@codesourcery.com>
* gencheck.c, gengenrtl.c: Don't define xmalloc.
diff --git a/gcc/config/rs6000/tramp.asm b/gcc/config/rs6000/tramp.asm
index 737a8fbfaff..c2a38d10f5c 100644
--- a/gcc/config/rs6000/tramp.asm
+++ b/gcc/config/rs6000/tramp.asm
@@ -104,6 +104,6 @@ FUNC_START(__trampoline_setup)
blr
.Labort:
- bl FUNC_NAME(abort)
+ bl JUMP_TARGET(abort)
FUNC_END(__trampoline_setup)
diff --git a/gcc/ginclude/ppc-asm.h b/gcc/ginclude/ppc-asm.h
index 678743245f3..3a6fb2a8bcd 100644
--- a/gcc/ginclude/ppc-asm.h
+++ b/gcc/ginclude/ppc-asm.h
@@ -105,6 +105,7 @@
#if defined(_CALL_AIXDESC)
#define FUNC_NAME(name) GLUE(.,name)
+#define JUMP_TARGET(name) FUNC_NAME(name)
#define FUNC_START(name) \
.section DESC_SECTION,"aw"; \
name: \
@@ -123,6 +124,7 @@ GLUE(.L,name): \
#elif defined(__WINNT__)
#define FUNC_NAME(name) GLUE(..,name)
+#define JUMP_TARGET(name) FUNC_NAME(name)
#define FUNC_START(name) \
.pdata; \
.align 2; \
@@ -141,6 +143,7 @@ GLUE(FE_MOT_RESVD..,name):
#elif defined(_CALL_NT)
#define FUNC_NAME(name) GLUE(..,name)
+#define JUMP_TARGET(name) FUNC_NAME(name)
#define FUNC_START(name) \
.section DESC_SECTION,"aw"; \
name: \
@@ -176,6 +179,11 @@ GLUE(.L,name): \
#else
#define FUNC_NAME(name) GLUE(__USER_LABEL_PREFIX__,name)
+#if defined __PIC__ || defined __pic__
+#define JUMP_TARGET(name) FUNC_NAME(name@plt)
+#else
+#define JUMP_TARGET(name) FUNC_NAME(name)
+#endif
#define FUNC_START(name) \
.type FUNC_NAME(name),@function; \
.globl FUNC_NAME(name); \