This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48308] crosscompiling to arm fails with assembler: can't resolve '.LC4' {.rodata.str1.1 section} - '.LPIC4' {*UND* section}
- From: "ibolton at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Mar 2011 15:23:23 +0000
- Subject: [Bug target/48308] crosscompiling to arm fails with assembler: can't resolve '.LC4' {.rodata.str1.1 section} - '.LPIC4' {*UND* section}
- Auto-submitted: auto-generated
- References: <bug-48308-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48308
Ian Bolton <ibolton at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.03.29 15:23:12
CC| |ibolton at gcc dot gnu.org
Known to work| |4.4.5, 4.5.2
Ever Confirmed|0 |1
Known to fail| |4.6.0, 4.7.0
--- Comment #6 from Ian Bolton <ibolton at gcc dot gnu.org> 2011-03-29 15:23:12 UTC ---
Using trunk, r171422, I have compiled the reduced test case as follows:
arm-none-linux-gnueabi-gcc -fPIC -Os -c pr48308.c -mcpu=arm9tdmi -marm
pr48308.s: Assembler messages:
pr48308.s:97: Error: can't resolve `.LC4' {.rodata.str1.1 section} - `.LPIC4'
{*UND* section}
With --save-temps, you can see the missing .LPIC4 in the .s.
This is therefore confirmed in trunk as well.
FYI: the problem doesn't happen with -mthumb.