public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11120] New: strncmp() will be broken if used in ld.so on x86-64
@ 2009-12-31 11:01 mrs at mythic-beasts dot com
  2010-01-14 16:10 ` [Bug libc/11120] " drepper at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: mrs at mythic-beasts dot com @ 2009-12-31 11:01 UTC (permalink / raw)
  To: glibc-bugs

As of 7956a3d2, sysdeps/x86_64/strcmp.S implements optimised versions
of both strcmp() and strncmp().  When this file is built into ld.so,
however, it falls back to using the unoptimised code which implements
only strcmp().  If strncmp() is ever used in ld.so on x86-64 it will
silently be implemented as strcmp().

Whether to fix this is upto the glibc developers.  If you don't want
to fix this I would suggest adding the following to the top of
sysdeps/x86_64/strncmp.S so that strncmp()'s behaviour does not come
as a surprise if it is ever used in this context:

#ifdef NOT_IN_libc
#  error "Not implemented for ld.so"
#endif

-- 
           Summary: strncmp() will be broken if used in ld.so on x86-64
           Product: glibc
           Version: 2.11
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: mrs at mythic-beasts dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11120

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug libc/11120] strncmp() will be broken if used in ld.so on x86-64
  2009-12-31 11:01 [Bug libc/11120] New: strncmp() will be broken if used in ld.so on x86-64 mrs at mythic-beasts dot com
@ 2010-01-14 16:10 ` drepper at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2010-01-14 16:10 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2010-01-14 16:10 -------
Changed in git.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=11120

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2010-01-14 16:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-31 11:01 [Bug libc/11120] New: strncmp() will be broken if used in ld.so on x86-64 mrs at mythic-beasts dot com
2010-01-14 16:10 ` [Bug libc/11120] " drepper 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).