bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24704] [2.33 Regression] Internal error building skiboot for pow


From: amodra at gmail dot com
Subject: [Bug ld/24704] [2.33 Regression] Internal error building skiboot for powerpc64-linux-gnu
Date: Wed, 19 Jun 2019 15:47:38 +0000

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

--- Comment #2 from Alan Modra <amodra at gmail dot com> ---
This is due to a horrible linker script breaking a new GOT indirect to GOT
relative optimisation (git commit 066f4018ae78).

ld does a preliminary layout to see whether various optimisations can be done. 
In this case the preliminary layout indicates that code using a GOT indirect
address can be replaced with code calculating a GOT relative address (saving a
GOT entry and load from memory).  The trouble is that skiboot.lds puts a bunch
of dynamic sections between .got and the address in question.  Those dynamic
sections are not filled out for the preliminary layout, nor can they be since
one of the aims of the ppc64 linker optimisation is to reduce dynamic
relocations.  With the dynamic sections adding over 150kb, the optimisation is
no longer valid but ld has already removed the GOT entry.

-- 
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]