static void dl_main (const ElfW(Phdr) *phdr, ElfW(Word) phnum,
- ElfW(Addr) *user_entry, ElfW(auxv_t) *auxv);
+ elfptr_t *user_entry, ElfW(auxv_t) *auxv);
/* These two variables cannot be moved into .data.rel.ro. */
static struct libname_list _dl_rtld_libname;
_dl_start_final (void *arg, struct dl_start_final_info *info)
#endif
{
- ElfW(Addr) start_addr;
+ elfptr_t start_addr;
/* Do not use an initializer for these members because it would
intefere with __rtld_static_init. */
static void
dl_main (const ElfW(Phdr) *phdr,
ElfW(Word) phnum,
- ElfW(Addr) *user_entry,
+ elfptr_t *user_entry,
ElfW(auxv_t) *auxv)
{
struct link_map *main_map;
ElfW(Dyn) *l_info[DT_NUM + DT_THISPROCNUM + DT_VERSIONTAGNUM
+ DT_EXTRANUM + DT_VALNUM + DT_ADDRNUM];
const ElfW(Phdr) *l_phdr; /* Pointer to program header table in core. */
- ElfW(Addr) l_entry; /* Entry point location. */
+ elfptr_t l_entry; /* Entry point location. */
ElfW(Half) l_phnum; /* Number of program header entries. */
ElfW(Half) l_ldnum; /* Number of dynamic segment entries. */
After this, file access calls and getenv must work. This is responsible
for setting __libc_enable_secure if we need to be secure (e.g. setuid),
and for setting _dl_argc and _dl_argv, and then calling _dl_main. */
-extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
+extern elfptr_t _dl_sysdep_start (void **start_argptr,
void (*dl_main) (const ElfW(Phdr) *phdr,
ElfW(Word) phnum,
- ElfW(Addr) *user_entry,
+ elfptr_t *user_entry,
ElfW(auxv_t) *auxv))
attribute_hidden;
{
const ElfW(Phdr) *phdr;
ElfW(Word) phnum;
- ElfW(Addr) user_entry;
+ elfptr_t user_entry;
};
/* Separate function, so that dl_main can be called without the large
args->user_entry = auxv_values[AT_ENTRY];
}
-ElfW(Addr)
+elfptr_t
_dl_sysdep_start (void **start_argptr,
void (*dl_main) (const ElfW(Phdr) *phdr, ElfW(Word) phnum,
- ElfW(Addr) *user_entry, ElfW(auxv_t) *auxv))
+ elfptr_t *user_entry, ElfW(auxv_t) *auxv))
{
__libc_stack_end = DL_STACK_END (start_argptr);