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 received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1833237

Title:
  skiboot ftbfs in eoan

To manage notifications about this bug go to:
https://bugs.launchpad.net/binutils/+bug/1833237/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to