bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26150] Assertion failure at ldlang.c:7269 when using inline asse


From: pexu at sourceware dot mail.kapsi.fi
Subject: [Bug ld/26150] Assertion failure at ldlang.c:7269 when using inline assembly, -flto and --start-group
Date: Tue, 23 Jun 2020 11:30:36 +0000

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

--- Comment #11 from Pekka Seppänen <pexu at sourceware dot mail.kapsi.fi> ---
Oh my... I completely forgot the --plugin part and how it participates with ar.
 This is my bad, sorry :(  Indeed the resulting (thin) archive is a bit
different whether or not --plugin is there, namely how archive0__object1 is
mapped in this case.  So, in a sense that assertation is simply a red herring.

There could be yet another way of triggering this same problem, again, due to
not properly using --plugin when creating an archive with object files compiled
using -flto and inline assembly.  I originally stubled upon this as I have a
few locations that require naked functions when forwarding calls between
different rings.  For AArch64 GCC does unfortunately support those, so I simply
had a similar inline shims;  Those do not actually reference any symbols but
are referenced within the same library.

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