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
This commit is contained in:
parent
53ee95810b
commit
eb522a9455
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user