public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/16169] New: AArch64 clone.S is missing some CFI markup
@ 2013-11-13 20:35 tromey at redhat dot com
  2013-11-13 20:46 ` [Bug ports/16169] " tromey at redhat dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: tromey at redhat dot com @ 2013-11-13 20:35 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16169
           Summary: AArch64 clone.S is missing some CFI markup
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at redhat dot com
                CC: carlos at redhat dot com, roland at gnu dot org

Created attachment 7277
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7277&action=edit
untested patch

While debugging bug #16155 I noticed that the AArch64
clone.S does not properly note that the stack ends.
Other arches (I checked ARM and x86-64) do this with
CFI directives.

I'm attaching a completely untested (not even compiled)
patch that shows what I think ought to be done.  The
key bit is marking the link register as unavailable.


Also, I noticed that the AArch64 clone.S does not
implement this part of AAPCS64:

"The end of the frame record chain is indicated by the address zero in the
address for the previous frame."

This is in Section 5.2.3 The Frame Pointer.

At least based on my reading of the x86-64 clone.S, the
code run in the new clone ought to ensure this; but I am
not completely certain.

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


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

end of thread, other threads:[~2020-11-09 10:24 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 20:35 [Bug ports/16169] New: AArch64 clone.S is missing some CFI markup tromey at redhat dot com
2013-11-13 20:46 ` [Bug ports/16169] " tromey at redhat dot com
2013-11-13 22:32 ` carlos at redhat dot com
2013-11-13 22:33 ` carlos at redhat dot com
2013-11-14  0:59 ` ryan.arnold at linaro dot org
2013-11-14  9:30 ` marcus.shawcroft at linaro dot org
2013-11-14 15:32 ` tromey at redhat dot com
2013-11-14 20:27 ` ryan.arnold at linaro dot org
2013-11-27 17:56 ` tromey at redhat dot com
2013-11-27 17:58 ` ryan.arnold at linaro dot org
2014-01-16 17:40 ` jan.kratochvil at redhat dot com
2014-01-16 17:44 ` mjw at redhat dot com
2014-01-16 17:52 ` mjw at redhat dot com
2014-01-16 18:39 ` carlos at redhat dot com
2014-01-16 20:28 ` tromey at redhat dot com
2014-01-20 15:45 ` cvs-commit at gcc dot gnu.org
2014-01-21 12:44 ` cvs-commit at gcc dot gnu.org
2014-01-21 12:45 ` marcus.shawcroft at linaro dot org
2014-06-13  9:32 ` fweimer at redhat dot com
2020-11-09 10:24 ` 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).