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: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 06 Sep 2013 03:11:01 +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
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #5 from Rich Felker <bugdal at aerifal dot cx> ---
Further, it should be noted that the original program that's failing is invalid
GNU C. The inline assembly block is modifying registers (the flags register)
without informing the compiler via the clobber list. Even without ANY
involvement of glibc, it could break; for example, the compiler itself could
generate "rep stosq" or "rep movsq" and have them run in the wrong direction
due to the direction flag having been changed out from under the compiler's
knowledge.
--
You are receiving this mail because:
You are on the CC list for the bug.