diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-10 09:12:11 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-10 09:12:11 +0000 |
commit | 8dd569934c2019dff527f0587f3d809efeec7c03 (patch) | |
tree | 56541d1fa27eed805f18da76464f4b1be727adb5 /dlfcn/dladdr.c | |
parent | e48f96382f237c0edad5c446eca867092406a51d (diff) | |
download | glibc-8dd569934c2019dff527f0587f3d809efeec7c03.zip glibc-8dd569934c2019dff527f0587f3d809efeec7c03.tar.gz glibc-8dd569934c2019dff527f0587f3d809efeec7c03.tar.bz2 |
2003-03-10 Roland McGrath <roland@redhat.com>
* dlfcn/Makefile (libdl-routines): Add dladdr1.
* dlfcn/dladdr1.c: New file.
* dlfcn/dlfcn.h [__USE_GNU]: Declare dladdr1.
[__USE_GNU] (RTLD_DL_SYMENT, RTLD_DL_LINKMAP): New enum constants.
* elf/dl-addr.c (_dl_addr): Take new args, a struct link_map ** and
a const ElfNN_Sym ** to fill in.
* include/dlfcn.h: Update decl. Include <link.h>.
* dlfcn/dladdr.c (dladdr): Update caller.
* malloc/mtrace.c (tr_where): Likewise.
* sysdeps/generic/elf/backtracesyms.c: Likewise.
* sysdeps/generic/elf/backtracesymsfd.c: Likewise.
* dlfcn/Versions (libdl: GLIBC_2.3.3): New set, add dladdr1.
* Versions.def (libdl): Define GLIBC_2.3.3 set.
Diffstat (limited to 'dlfcn/dladdr.c')
-rw-r--r-- | dlfcn/dladdr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dlfcn/dladdr.c b/dlfcn/dladdr.c index 2ebc652..b5490e5 100644 --- a/dlfcn/dladdr.c +++ b/dlfcn/dladdr.c @@ -1,5 +1,5 @@ /* Locate the shared object symbol nearest a given address. - Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,5 +22,5 @@ int dladdr (const void *address, Dl_info *info) { - return _dl_addr (address, info); + return _dl_addr (address, info, NULL, NULL); } |