[Bug c/16343] New: invalid code when using -meabi -msdata=eabi

wintermute2k4 at ntlworld dot com gcc-bugzilla@gcc.gnu.org
Sat Jul 3 06:58:00 GMT 2004


compiler generates code for a function pointer as a small data area reference.

linker reports

the target (testCB) of a R_PPC_EMB_SDA21 relocation is in the wrong output section (.text)
final link failed: Bad value

Configured with:
../../gcc-3.4.0//configure --enable-languages=c,c++ --with-cpu=750 --with-gc
c --with-gnu-ld --with-gnu-as --with-stabs --disable-nls --disable-shared --
disable-threads --disable-multilib --disable-win32-registry --target=powerpc
-elf --
with-newlib --prefix=c:/devkitPPC_r7a -v
Thread model: single
gcc version 3.4.0

embedded system using newlib 1.12.0

-- 
           Summary: invalid code when using -meabi -msdata=eabi
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wintermute2k4 at ntlworld dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: powerpc-*-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16343



More information about the Gcc-bugs mailing list