bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libc bug with __mmap linkage?


From: Douglas Greiman
Subject: libc bug with __mmap linkage?
Date: Tue, 30 Jul 2002 18:05:24 -0700

The mmap linker symbol is weak, presumably so that one may replace it
with their own version. However, the corresponding strong __mmap symbol
is only a local symbol, not global (external), and so cannot be called
by a replacement mmap(). Is this a bug?

By comparison, __libc_malloc and __gettimeofday are external symbols.

I looked at glibc-2.1.3 and glibc-2.2.2 (Redhat 6.2 and 7.1
respectively).

-- 
Douglas Greiman
Software Engineer
Google!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]