From 3e8e2eed47d9851854f20f21c338340dd059810d Mon Sep 17 00:00:00 2001 From: jdp Date: Mon, 30 Aug 1999 01:54:13 +0000 Subject: Get the actual pathname of the dynamic linker from the executable's PT_INTERP program header entry, to ensure that gdb always finds the right dynamic linker. Use obj->relocbase to simplify a few calculations where appropriate. --- libexec/rtld-elf/rtld.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libexec/rtld-elf/rtld.h') diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h index ab26d01..0cdbe4c 100644 --- a/libexec/rtld-elf/rtld.h +++ b/libexec/rtld-elf/rtld.h @@ -99,6 +99,7 @@ typedef struct Struct_Obj_Entry { caddr_t entry; /* Entry point */ const Elf_Phdr *phdr; /* Program header if it is mapped, else NULL */ size_t phsize; /* Size of program header in bytes */ + const char *interp; /* Pathname of the interpreter, if any */ /* Items from the dynamic section. */ Elf_Addr *pltgot; /* PLT or GOT, depending on architecture */ -- cgit v1.1