]> git.ipfire.org Git - thirdparty/glibc.git/blame - dlfcn/dladdr.c
(__libc_dlsym_private, __libc_register_dl_open_hook): New functions. (__libc_dlopen_m...
[thirdparty/glibc.git] / dlfcn / dladdr.c
CommitLineData
a2b08ee5 1/* Locate the shared object symbol nearest a given address.
8dd56993 2 Copyright (C) 1996, 1997, 1998, 1999, 2003 Free Software Foundation, Inc.
afd4eb37 3 This file is part of the GNU C Library.
a2b934be 4
afd4eb37 5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
a2b934be 9
afd4eb37
UD
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
a2b934be 14
41bdb6e2
AJ
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
a2b934be 19
a2b934be 20#include <dlfcn.h>
a2b934be
RM
21
22int
a2b08ee5 23dladdr (const void *address, Dl_info *info)
a2b934be 24{
8dd56993 25 return _dl_addr (address, info, NULL, NULL);
a2b934be 26}