[Bug target/17751] New: Undefined .LCTOC0 symbol

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 30 17:17:00 GMT 2004


/* { 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



More information about the Gcc-bugs mailing list