Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc/config/m68k When compiling use @P...
details: https://anonhg.NetBSD.org/src/rev/0a65c45478b7
branches: trunk
changeset: 789552:0a65c45478b7
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 21 21:11:30 2013 +0000
description:
When compiling use @PLTPC to generate PLT relocs for NetBSD.
When building libgcc_s.so for m68k, this gets rid of
m68k--netbsdelf/4.5.4/../../../../m68k--netbsdelf/bin/ld: warning: creating a DT_TEXTREL in a shared object.
diffstat:
external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 30296ee7817a -r 0a65c45478b7 external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm
--- a/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm Wed Aug 21 21:05:29 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm Wed Aug 21 21:11:30 2013 +0000
@@ -202,6 +202,8 @@
#if defined (__mcoldfire__) && !defined (__mcfisab__) && !defined (__mcfisac__)
lea \addr-.-8,a0
jsr pc@(a0)
+#elif defined(__NetBSD__)
+ jbsr \addr@PLTPC
#else
jbsr \addr
#endif
@@ -211,9 +213,11 @@
/* ISA C has no bra.l instruction, and since this assembly file
gets assembled into multiple object files, we avoid the
bra instruction entirely. */
-#if (defined (__mcoldfire__) && !defined (__mcfisab__)) || defined(__NetBSD__)
+#if (defined (__mcoldfire__) && !defined (__mcfisab__))
lea \addr-.-8,a0
jmp pc@(a0)
+#elif defined(__NetBSD__)
+ bra \addr@PLTPC
#else
bra \addr
#endif
Home |
Main Index |
Thread Index |
Old Index