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

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.


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