This is the mail archive of the glibc-bugs@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]

[Bug libc/15931] memcpy() has different behavior when statically linked (x86_64)


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.


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