[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/15365] New: MIPS linker hits assertion with -mabi=64 accessing _

From: sje at gcc dot gnu.org
Subject: [Bug ld/15365] New: MIPS linker hits assertion with -mabi=64 accessing __ehdr_start
Date: Fri, 12 Apr 2013 19:14:59 +0000


             Bug #: 15365
           Summary: MIPS linker hits assertion with -mabi=64 accessing
           Product: binutils
           Version: 2.24 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: address@hidden
        ReportedBy: address@hidden
    Classification: Unclassified

A recent change to glibc caused my ToT MIPS builds to fail.  The test case
included below demonstrates the linker assertion I am hitting when building

% cat ehdr.c
#include <stdio.h>
#include <elf.h> /* has definition of Elf32_Ehdr & Elf64_Ehdr */

extern const Elf32_Ehdr __ehdr_start __attribute__ ((weak));

    void *x;
    x = (void *) &__ehdr_start;
    printf("0x%x\n", x);

% mips-mti-linux-gnu-gcc -mips64r2 -mabi=64 ehdr.c -o x
BFD (GNU Binutils) assertion fail
collect2: error: ld returned 1 exit status

The assertion in elfxx-mips.c is:

   /* This function shouldn't be called for symbols that live in the global    
  area of the GOT.  */
   BFD_ASSERT (h == NULL || h->global_got_area == GGA_NONE);

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]