https://sourceware.org/bugzilla/show_bug.cgi?id=22770

            Bug ID: 22770
           Summary: [MIPS] GOLD fails to link ghc: internal error in
                    get_got_page_offset, at gold/mips.cc:6271
           Product: binutils
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: jcowgill+sourceware at jcowgill dot uk
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 10767
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10767&action=edit
objects.tar.xz

From:
https://bugs.debian.org/886222

The GOLD linker fails to link GHC on the 3 mips Debian architectures. Using the
BFD linker works. It seems to fail in previous binutils versions as well so I
don't think this is a regression.

The original link command is very large, but I have at least managed to get the
input objects down to around 24MB worth of objects (attached). Ignore all the
undefined references which come from missing objects I have removed.

Simply linking the objects together:
 ld objects/*

Gives:
> [...]
> Syntax.p_o:ghc_3.p_hc:function s1oJN_entry: error: undefined reference to 
> 'base_GHCziShow_zdfShowZLz2cUz2cUZRzuzdsgo2_entry'
> Syntax.p_o:ghc_3.p_hc:function s1oMG_entry: error: undefined reference to 
> 'base_GHCziShow_zdfShowZLz2cUz2cUZRzuzdsgo2_entry'
> Syntax.p_o:ghc_3.p_hc:function s1oMT_entry: error: undefined reference to 
> 'base_GHCziShow_zdfShowZLz2cUz2cUZRzuzdsgo2_entry'
> ../../build-mips/gold/ld-new: internal error in get_got_page_offset, at 
> ../../binutils-gdb/gold/mips.cc:6271

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to