Module Name: src Committed By: matt Date: Wed Aug 21 21:11:30 UTC 2013
Modified Files: src/external/gpl3/gcc/dist/gcc/config/m68k: lb1sf68.asm Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm diff -u src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm:1.2 src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm:1.3 --- src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm:1.2 Sun Sep 25 13:33:11 2011 +++ src/external/gpl3/gcc/dist/gcc/config/m68k/lb1sf68.asm Wed Aug 21 21:11:30 2013 @@ -202,6 +202,8 @@ see the files COPYING3 and COPYING.RUNTI #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.RUNTI /* 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