summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/rtld.h
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-08-21 03:29:40 +0000
committerjb <jb@FreeBSD.org>1998-08-21 03:29:40 +0000
commitc237eaa035087aef88dc060f5536924ad7ed27ce (patch)
tree40b2b5671f26bc6f0548fcd97e130568d427838c /libexec/rtld-elf/rtld.h
parenta33756afc02ca9131578241976381ecda16dbb43 (diff)
downloadFreeBSD-src-c237eaa035087aef88dc060f5536924ad7ed27ce.zip
FreeBSD-src-c237eaa035087aef88dc060f5536924ad7ed27ce.tar.gz
Update this header to use the revamped elf headers which select Elf32
or Elf64 based on the inclusion of the machine dependent header. I've left the addition of the extra fields to handle the relocation structures with addend for a separate commit after jdp has had a chance to review what I've done. The current change is needed to compile csu/alpha/crt1.c
Diffstat (limited to 'libexec/rtld-elf/rtld.h')
-rw-r--r--libexec/rtld-elf/rtld.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h
index c5343a8..a8490d1 100644
--- a/libexec/rtld-elf/rtld.h
+++ b/libexec/rtld-elf/rtld.h
@@ -22,7 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: rtld.h,v 1.1.1.1 1998/03/07 19:24:35 jdp Exp $
+ * $Id: rtld.h,v 1.2 1998/04/30 07:48:02 dfr Exp $
*/
#ifndef RTLD_H /* { */
@@ -65,8 +65,8 @@ typedef struct Struct_Obj_Entry {
* These two items have to be set right for compatibility with the
* original ElfKit crt1.o.
*/
- Elf32_Word magic; /* Magic number (sanity check) */
- Elf32_Word version; /* Version number of struct format */
+ Elf_Word magic; /* Magic number (sanity check) */
+ Elf_Word version; /* Version number of struct format */
struct Struct_Obj_Entry *next;
char *path; /* Pathname of underlying file (%) */
@@ -77,26 +77,26 @@ typedef struct Struct_Obj_Entry {
caddr_t mapbase; /* Base address of mapped region */
size_t mapsize; /* Size of mapped region in bytes */
size_t textsize; /* Size of text segment in bytes */
- Elf32_Addr vaddrbase; /* Base address in shared object file */
+ Elf_Addr vaddrbase; /* Base address in shared object file */
caddr_t relocbase; /* Relocation constant = mapbase - vaddrbase */
- const Elf32_Dyn *dynamic; /* Dynamic section */
+ const Elf_Dyn *dynamic; /* Dynamic section */
caddr_t entry; /* Entry point */
- const Elf32_Phdr *phdr; /* Program header if it is mapped, else NULL */
+ const Elf_Phdr *phdr; /* Program header if it is mapped, else NULL */
size_t phsize; /* Size of program header in bytes */
/* Items from the dynamic section. */
- Elf32_Addr *got; /* GOT table */
- const Elf32_Rel *rel; /* Relocation entries */
+ Elf_Addr *got; /* GOT table */
+ const Elf_Rel *rel; /* Relocation entries */
unsigned long relsize; /* Size in bytes of relocation info */
- const Elf32_Rel *pltrel; /* PLT relocation entries */
+ const Elf_Rel *pltrel; /* PLT relocation entries */
unsigned long pltrelsize; /* Size in bytes of PLT relocation info */
- const Elf32_Sym *symtab; /* Symbol table */
+ const Elf_Sym *symtab; /* Symbol table */
const char *strtab; /* String table */
unsigned long strsize; /* Size in bytes of string table */
- const Elf32_Word *buckets; /* Hash table buckets array */
+ const Elf_Word *buckets; /* Hash table buckets array */
unsigned long nbuckets; /* Number of buckets */
- const Elf32_Word *chains; /* Hash table chain array */
+ const Elf_Word *chains; /* Hash table chain array */
unsigned long nchains; /* Number of chains */
const char *rpath; /* Search path specified in object */
OpenPOWER on IntegriCloud