[Bug dynamic-link/27279] x86_64 _dl_runtime_resolve should preserve r10
"source at s dot muenzel.net via Glibc-bugs" <[email protected]>
| Newsgroups | gmane.comp.lib.glibc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=27279
Stefan Muenzel <source at s dot muenzel.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |source at s dot muenzel.net
--- Comment #5 from Stefan Muenzel <source at s dot muenzel.net> ---
The x86-64 abi says in the footnote mentioning plt-use of r11 that r10 is used
for the static chain register (for passing the outer function context for
nested functions).
If I understand that correctly, this means that if r10 is not preserved, then
an inner function that is resolved via _dl_runtime_resolve will have its
context clobbered.
If this understanding is correct, then not preserving r10 is a bug w.r.t the
abi.
--
You are receiving this mail because:
You are on the CC list for the bug.