This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/2765] malloc.c strong_alias for free, malloc, realloc should be weak_alias
- From: "geir at cray dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 Mar 2009 22:06:56 -0000
- Subject: [Bug libc/2765] malloc.c strong_alias for free, malloc, realloc should be weak_alias
- References: <20060614075242.2765.mbland@google.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From geir at cray dot com 2009-03-12 22:06 -------
This behavior prevents the TotalView memory debugging feature from working with
statically link codes:
$ cat main.c
int main() { }
$ gcc -static -g -L/opt/toolworks/totalview.8.6.0/linux-x86-64/lib
-ltvheap_cnl_static -lpthread main.c
/usr/lib/../lib64/libc.a(malloc.o): In function `free':
(.text+0x1c90): multiple definition of `free'
/opt/toolworks/totalview.8.6.0/linux-x86-64/lib/libtvheap_cnl_static.a:(.text+0x60d5):
first defined here
/usr/lib/../lib64/libc.a(malloc.o): In function `malloc':
(.text+0x3fe0): multiple definition of `malloc'
/opt/toolworks/totalview.8.6.0/linux-x86-64/lib/libtvheap_cnl_static.a:(.text+0x60e3):
first defined here
/usr/lib/../lib64/libc.a(malloc.o): In function `realloc':
(.text+0x4470): multiple definition of `realloc'
/opt/toolworks/totalview.8.6.0/linux-x86-64/lib/libtvheap_cnl_static.a:(.text+0x610d):
first defined here
collect2: ld returned 1 exit status
$
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |geir at cray dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2765
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.