summaryrefslogtreecommitdiff
path: root/ldso/ldso/dl-startup.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-30 22:32:29 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-30 22:32:29 +0000
commit59cc1e9342e9782cc4d999a2b0649dccdcfd2c6c (patch)
tree9605fc7e6c096d305842fbb67d709a1a19b7450b /ldso/ldso/dl-startup.c
parent95223e89a73482c9f4f43ca3babf9edd01f6415b (diff)
create generic ELF_* macros to hide 32/64 bit differences
Diffstat (limited to 'ldso/ldso/dl-startup.c')
-rw-r--r--ldso/ldso/dl-startup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c
index 8b54bc9ee..f55330124 100644
--- a/ldso/ldso/dl-startup.c
+++ b/ldso/ldso/dl-startup.c
@@ -164,7 +164,7 @@ static void * __attribute_used__ _dl_start(unsigned long args)
header = (ElfW(Ehdr) *) auxvt[AT_BASE].a_un.a_ptr;
/* Check the ELF header to make sure everything looks ok. */
- if (!header || header->e_ident[EI_CLASS] != ELFCLASS32 ||
+ if (!header || header->e_ident[EI_CLASS] != ELF_CLASS ||
header->e_ident[EI_VERSION] != EV_CURRENT
/* Do not use an inline _dl_strncmp here or some arches
* will blow chunks, i.e. those that need to relocate all
@@ -255,7 +255,7 @@ static void * __attribute_used__ _dl_start(unsigned long args)
rpnt = (ELF_RELOC *) (rel_addr + load_addr);
for (i = 0; i < rel_size; i += sizeof(ELF_RELOC), rpnt++) {
reloc_addr = (unsigned long *) (load_addr + (unsigned long) rpnt->r_offset);
- symtab_index = ELF32_R_SYM(rpnt->r_info);
+ symtab_index = ELF_R_SYM(rpnt->r_info);
symbol_addr = 0;
sym = NULL;
if (symtab_index) {