This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16343] New: invalid code when using -meabi -msdata=eabi
- From: "wintermute2k4 at ntlworld dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2004 06:58:39 -0000
- Subject: [Bug c/16343] New: invalid code when using -meabi -msdata=eabi
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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