bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28827] [2.38 Regression] ld hits assertion building LLVM 9 on po


From: amodra at gmail dot com
Subject: [Bug ld/28827] [2.38 Regression] ld hits assertion building LLVM 9 on powerpc64le-linux-gnu
Date: Fri, 04 Feb 2022 08:12:03 +0000

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

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |amodra at gmail dot com
                 CC|amodra at gmail dot com            |

--- Comment #7 from Alan Modra <amodra at gmail dot com> ---
Matthias, thanks for making the object files available.  That let me reproduce
the failure, and it isn't anthing to do with what I thought might be going on
at past 20 stub sizing iterations.  The patches already applied for this bug on
mainline don't fix the problem.

We're getting a section layout quite different when sizing stubs to that when
building stubs.  In particular the gap at the of the relro segment changes,
.plt is separated from .got.  That means the offsets from the toc pointer reg
to access addresses in the plt change.  When the offsets change, the size of
the required code to load those addresses can change.  That's why the assertion
triggers.  A plt call stub increases in size, which then results in the next
stub overwriting the end of the plt call stub.

Reverting HJ's relro patches avoids the bug.

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