public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/15792] New: ARM dynamic linker should save/restore coprocessor registers
@ 2013-07-26 20:43 jsm28 at gcc dot gnu.org
  2014-02-08  1:59 ` [Bug dynamic-link/15792] [arm] " jsm28 at gcc dot gnu.org
  2014-06-13 13:18 ` fweimer at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-07-26 20:43 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15792

            Bug ID: 15792
           Summary: ARM dynamic linker should save/restore coprocessor
                    registers
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
                CC: carlos at redhat dot com, roland at gnu dot org
              Host: arm*-*-*

The ARM dynamic linker should save and restore the call-clobbered NEON
registers, d0-d7 and d16-d31, if they exist, in _dl_runtime_resolve and
_dl_runtime_profile and the TLS descriptors code.  This requires runtime checks
for whether the registers exist using HWCAPs (unless compiler predefines allow
such checks to be elided).  (Likewise, for iWMMXt call-clobbered registers.)

For d0-d7 this is needed when built with the VFP ABI because they are used for
argument passing in that case.  For all the call-clobbered registers, in all
cases, this is needed because of restricted clobber sets for the TLS descriptor
functions and for functions such as __aeabi_memcpy that may be called via the
dynamic linker.

IFUNCs are the main practical way of triggering this issue, at least for the
case of d0-d7.  It might be worth explicitly disabling VFP and iWMMXt for the
dynamic linker if possible to avoid the cost of checking for and saving the
other registers on every program execution to address what's a fairly
theoretical issue - if the dynamic linker (including memcpy etc. called
therein) never uses VFP or iWMMXt registers, then the only case needing extra
register saving is the case of building for the VFP ABI, which needs to save
d0-d7 only because of the IFUNC issue, with no dynamic checks needed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/15792] [arm] ARM dynamic linker should save/restore coprocessor registers
  2013-07-26 20:43 [Bug ports/15792] New: ARM dynamic linker should save/restore coprocessor registers jsm28 at gcc dot gnu.org
@ 2014-02-08  1:59 ` jsm28 at gcc dot gnu.org
  2014-06-13 13:18 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-08  1:59 UTC (permalink / raw)
  To: glibc-bugs

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

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|ports                       |dynamic-link
            Summary|ARM dynamic linker should   |[arm] ARM dynamic linker
                   |save/restore coprocessor    |should save/restore
                   |registers                   |coprocessor registers

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/15792] [arm] ARM dynamic linker should save/restore coprocessor registers
  2013-07-26 20:43 [Bug ports/15792] New: ARM dynamic linker should save/restore coprocessor registers jsm28 at gcc dot gnu.org
  2014-02-08  1:59 ` [Bug dynamic-link/15792] [arm] " jsm28 at gcc dot gnu.org
@ 2014-06-13 13:18 ` fweimer at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 13:18 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-13 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-26 20:43 [Bug ports/15792] New: ARM dynamic linker should save/restore coprocessor registers jsm28 at gcc dot gnu.org
2014-02-08  1:59 ` [Bug dynamic-link/15792] [arm] " jsm28 at gcc dot gnu.org
2014-06-13 13:18 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).