This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17751] New: Undefined .LCTOC0 symbol
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2004 17:17:21 -0000
- Subject: [Bug target/17751] New: Undefined .LCTOC0 symbol
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
/* { dg-do link } */
/* { dg-options "-m64 -mminimal-toc" { target powerpc64-*-* } } */
char *strchr (const char *, int);
int
foo (int a)
{
int b;
b = 0;
if ("/"[1] != '\0')
if (strchr ("/", a))
b = 1;
return b;
}
int
main (void)
{
return 0;
}
does not link on ppc64. There is ld 30,.LCTOC0@toc(2) in the code, but
no .LCTOC0 definition.
--
Summary: Undefined .LCTOC0 symbol
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17751