fd7cb41920
DT_MIPS_RLD_MAP being defined on mips targets with shared libs. Since netbsd's gdb config.h defines HAVE_LINK_H, link.h is expected to provide it. So #include <machine/elf_machdep.h> to make it so.
35 lines
857 B
C
35 lines
857 B
C
/* $NetBSD: link.h,v 1.3 1998/10/30 05:43:40 jonathan Exp $ */
|
|
|
|
/*
|
|
* This only exists for GDB.
|
|
*/
|
|
#ifndef _LINK_H
|
|
#define _LINK_H
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <machine/elf_machdep.h>
|
|
|
|
struct link_map {
|
|
caddr_t l_addr; /* Base Address of library */
|
|
#ifdef __mips__
|
|
caddr_t l_offs; /* Load Offset of library */
|
|
#endif
|
|
const char *l_name; /* Absolute Path to Library */
|
|
void *l_ld; /* Pointer to .dynamic in memory */
|
|
struct link_map *l_next, *l_prev; /* linked list of of mapped libs */
|
|
};
|
|
|
|
struct r_debug {
|
|
int r_version; /* not used */
|
|
struct link_map *r_map; /* list of loaded images */
|
|
void (*r_brk)(void); /* pointer to break point */
|
|
enum {
|
|
RT_CONSISTENT, /* things are stable */
|
|
RT_ADD, /* adding a shared library */
|
|
RT_DELETE /* removing a shared library */
|
|
} r_state;
|
|
};
|
|
#endif /* _LINK_H */
|
|
|