bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/26312] ld produces broken PLT on aarch64 with BTI+PAC


From: nsz at gcc dot gnu.org
Subject: [Bug ld/26312] ld produces broken PLT on aarch64 with BTI+PAC
Date: Wed, 29 Jul 2020 13:33:03 +0000

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

Szabolcs Nagy <nsz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nsz at gcc dot gnu.org

--- Comment #2 from Szabolcs Nagy <nsz at gcc dot gnu.org> ---
the lack of PAC in PLT is deliberate: building with pac-ret does not
enable pac-plt and glibc has no support for pac-plt anyway (ld.so
would have to store signed addresses in PLTGOT entries)

the PAC note is not very useful/obvious: it's documented to mark
objects where pac-ret was in use throughout the code. (the dynamic
linker does not have to do anything with it, it just allows tracking
when something is not PAC protected).

normal plt entry size is 16bytes, but the first plt entry size is
always 32bytes.

with DT_AARCH64_BTI_PLT the plt entry size is 24bytes, and the first
plt entry size is 32bytes.

i don't know about sh_entsize, i will have to check what it should be.

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