diff options
Diffstat (limited to 'ldso/ldso/dl-startup.c')
-rw-r--r-- | ldso/ldso/dl-startup.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ldso/ldso/dl-startup.c b/ldso/ldso/dl-startup.c index 87f564f48..218b20f53 100644 --- a/ldso/ldso/dl-startup.c +++ b/ldso/ldso/dl-startup.c @@ -99,6 +99,10 @@ extern ElfW(Addr) _begin[] attribute_hidden; #endif +#ifdef LDSO_NEED_DPNT +ElfW(Dyn) *_dl_saved_dpnt = 0; +#endif + /* Static declarations */ static int (*_dl_elf_main) (int, char **, char **); @@ -341,6 +345,14 @@ DL_START(unsigned long args) fixed up by now. Still no function calls outside of this library, since the dynamic resolver is not yet ready. */ +#ifdef LDSO_NEED_DPNT +/*XXX TODO this crashes on nios2: it translates to + * [r5] := (value of the local variable dpnt) + * but r5 is a NULL pointer at this place, which was + * retrieved from the GOT a few instructions further above. + */ + _dl_saved_dpnt = dpnt; +#endif __rtld_stack_end = (void *)(argv - 1); _dl_elf_main = (int (*)(int, char **, char **)) |