[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/20878] gold powerpc64 le linux fails to link large Linux kerne
From: |
amodra at gmail dot com |
Subject: |
[Bug gold/20878] gold powerpc64 le linux fails to link large Linux kernel |
Date: |
Tue, 06 Dec 2016 00:39:27 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20878
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2016-12-06
Assignee|ccoutant at gmail dot com |amodra at gmail dot com
Ever confirmed|0 |1
--- Comment #4 from Alan Modra <amodra at gmail dot com> ---
This one is a real pain. It's due to gold adding stubs at the end of a section
rather than as ld.bfd does, in a separate section inserted just before one of
the group sections. I think I need to rewrite the powerpc.cc group_sections
code, throwing out --stub-group-size negative meaning that the stubs are always
before the branch and switch to --stub-group-size negative meaning that the
stubs are always *after* the branch. The problem is that if we want stubs
before branches, then the stubs must be added to the previous section. Adding
to the previous section is a disaster if there is a large gap between the
previous section and the group. That's exactly what happens with the kernel:
stubs are attached to a .meminit.text input section (last in output .text) for
the group of .init.text and .exit.text sections.
--
You are receiving this mail because:
You are on the CC list for the bug.