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.
This commit is contained in:
parent
98ce70f09e
commit
79d6dc9d9c
|
@ -202,6 +202,8 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
#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 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|||
/* 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
|
||||
|
|
Loading…
Reference in New Issue