[BACK]Return to link_elf.h CVS log [TXT][DIR] Up to [local] / src / include

File: [local] / src / include / link_elf.h (download)

Revision 1.4, Sun Sep 8 17:55:37 2002 UTC (21 years, 8 months ago) by drahn
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.3: +15 -77 lines

Revert this to art's orginal verstion, internal ld.so fields should not
be advertised in this header. Add a comment that this must be in sync
with ld.so. Fixes gdb shared library handing. ok pvalchev@

/*	$OpenBSD: link_elf.h,v 1.4 2002/09/08 17:55:37 drahn Exp $	*/

/*
 * Public domain.
 */

#ifndef _LINK_ELF_H
#define _LINK_ELF_H

#include <elf_abi.h>

#ifndef DT_PROCNUM
#define DT_PROCNUM 0
#endif

/*
 * struct link_map is a part of the protocol between the debugger and
 * ld.so. ld.so may have additional fields in it's version of this
 * stucture but those are ld.so private fields.
 */
struct link_map {
	caddr_t		l_addr;		/* Base address of library */
	const char	*l_name;	/* Absolute path to library */
	void		*l_ld;		/* pointer to _DYNAMIC */
	struct link_map	*l_next;
	struct link_map	*l_prev;
};
#endif /* !_LINK_ELF_H */