This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15931] memcpy() has different behavior when statically linked (x86_64)
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 04 Sep 2013 20:54:36 +0000
- Subject: [Bug libc/15931] memcpy() has different behavior when statically linked (x86_64)
- Auto-submitted: auto-generated
- References: <bug-15931-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15931
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #4 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
The x86_64 ABI specifies (section 3.2.1) that 'The direction flag DF in the
%rFLAGS register must be clear (set to "forward" direction) on function entry
and return.'. Thus, it is not valid to call any library function with DF set,
and code that does so has undefined behavior.
--
You are receiving this mail because:
You are on the CC list for the bug.