This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nptl/tst-thread-exit-clobber failure on armv7l-*-linux-gnueabihf


On Tue, 29 Jan 2019, Szabolcs Nagy wrote:

> the arm _dl_runtime_resolve code does not seem to preserve fp regs,
> i'm not sure why that works, but we should look out for gcc-9 changes
> that may start using fp regs in the arm dynamic linker.

As discussed in that GCC bug, this (for Arm) is glibc bug 15792.

As discussed elsewhere, audit modules, interposed malloc and IFUNC 
resolvers can all execute arbitrary user-provided code from within the 
dynamic linker.  This means that, if there is a requirement for the 
dynamic linker not to clobber some normally call-clobbered registers 
(either because they are used as argument registers, or because the 
dynamic linker can be used to call lazily-bound functions whose ABI has a 
more restricted clobber set), the dynamic linker actually needs to save 
those registers; compiling it not to use them itself is insufficient.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]