Add h8300.exp.
[deliverable/binutils-gdb.git] / gdb / xcoffsolib.h
CommitLineData
5140562f 1/* Data structures for RS/6000 shared libraries, for GDB.
211b564e 2 Copyright 1991, 1992, 1994, 1997 Free Software Foundation, Inc.
5140562f
JG
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
6c9638b4 18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
5140562f 19
0c4b30ea 20/* The vmap struct is used to describe the virtual address space of
1eeba686
PB
21 the target we are manipulating. The first entry is always the "exec"
22 file. Subsequent entries correspond to other objects that are
23 mapped into the address space of a process created from the "exec" file.
24 These are either in response to exec()ing the file, in which case all
25 shared libraries are loaded, or a "load" system call, followed by the
0c4b30ea 26 user's issuance of a "load" command. */
1eeba686
PB
27
28struct vmap {
0c4b30ea
SS
29 struct vmap *nxt; /* ptr to next in chain */
30 bfd *bfd; /* BFD for mappable object library */
31 char *name; /* ptr to object file name */
32 char *member; /* ptr to member name */
33 CORE_ADDR tstart; /* virtual addr where member is mapped */
34 CORE_ADDR tend; /* virtual upper bound of member */
211b564e
PS
35 CORE_ADDR tvma; /* virtual addr of text section in object file */
36 CORE_ADDR toffs; /* offset of text section in object file */
0c4b30ea 37 CORE_ADDR dstart; /* virtual address of data start */
211b564e
PS
38 CORE_ADDR dend; /* virtual address of data end */
39 CORE_ADDR dvma; /* virtual addr of data section in object file */
0c4b30ea
SS
40
41 /* This is NULL for the exec-file. */
42 struct objfile *objfile;
43
44 unsigned loaded:1; /* True if symbols are loaded */
45 unsigned padding:15;
1eeba686
PB
46};
47
48
49struct vmap_and_bfd {
50 bfd *pbfd;
51 struct vmap *pvmap;
52};
53
54extern struct vmap *vmap;
2aefe6e4 55
062cb0d3 56extern void
2aefe6e4
JK
57add_text_to_loadinfo PARAMS ((CORE_ADDR textaddr, CORE_ADDR dataaddr));
58
062cb0d3
FF
59/* Hook for symbol table relocation at runtime. */
60
61extern void (*xcoff_relocate_symtab_hook) PARAMS ((unsigned int));
This page took 0.387423 seconds and 4 git commands to generate.