This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]