|
@@ -33,7 +33,7 @@ libc_hidden_proto(exit)
|
|
#ifdef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
|
|
#ifdef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
|
|
libc_hidden_proto(strrchr)
|
|
libc_hidden_proto(strrchr)
|
|
#endif
|
|
#endif
|
|
-#ifdef __ARCH_USE_MMU__
|
|
|
|
|
|
+#ifndef __ARCH_HAS_NO_LDSO__
|
|
libc_hidden_proto(memcpy)
|
|
libc_hidden_proto(memcpy)
|
|
libc_hidden_proto(getgid)
|
|
libc_hidden_proto(getgid)
|
|
libc_hidden_proto(getuid)
|
|
libc_hidden_proto(getuid)
|
|
@@ -129,7 +129,7 @@ size_t __pagesize = 0;
|
|
# define O_NOFOLLOW 0
|
|
# define O_NOFOLLOW 0
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef __ARCH_USE_MMU__
|
|
|
|
|
|
+#ifndef __ARCH_HAS_NO_LDSO__
|
|
static void __check_one_fd(int fd, int mode)
|
|
static void __check_one_fd(int fd, int mode)
|
|
{
|
|
{
|
|
/* Check if the specified fd is already open */
|
|
/* Check if the specified fd is already open */
|
|
@@ -277,7 +277,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
|
|
char **argv, void (*app_init)(void), void (*app_fini)(void),
|
|
char **argv, void (*app_init)(void), void (*app_fini)(void),
|
|
void (*rtld_fini)(void), void *stack_end)
|
|
void (*rtld_fini)(void), void *stack_end)
|
|
{
|
|
{
|
|
-#ifdef __ARCH_USE_MMU__
|
|
|
|
|
|
+#ifndef __ARCH_HAS_NO_LDSO__
|
|
unsigned long *aux_dat;
|
|
unsigned long *aux_dat;
|
|
ElfW(auxv_t) auxvt[AT_EGID + 1];
|
|
ElfW(auxv_t) auxvt[AT_EGID + 1];
|
|
#endif
|
|
#endif
|
|
@@ -298,7 +298,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
|
|
__environ = &argv[argc];
|
|
__environ = &argv[argc];
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef __ARCH_USE_MMU__
|
|
|
|
|
|
+#ifndef __ARCH_HAS_NO_LDSO__
|
|
/* Pull stuff from the ELF header when possible */
|
|
/* Pull stuff from the ELF header when possible */
|
|
memset(auxvt, 0x00, sizeof(auxvt));
|
|
memset(auxvt, 0x00, sizeof(auxvt));
|
|
aux_dat = (unsigned long*)__environ;
|
|
aux_dat = (unsigned long*)__environ;
|
|
@@ -320,7 +320,7 @@ void __uClibc_main(int (*main)(int, char **, char **), int argc,
|
|
* __uClibc_init() regardless, to be sure the right thing happens. */
|
|
* __uClibc_init() regardless, to be sure the right thing happens. */
|
|
__uClibc_init();
|
|
__uClibc_init();
|
|
|
|
|
|
-#ifdef __ARCH_USE_MMU__
|
|
|
|
|
|
+#ifndef __ARCH_HAS_NO_LDSO__
|
|
/* Make certain getpagesize() gives the correct answer */
|
|
/* Make certain getpagesize() gives the correct answer */
|
|
__pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
|
|
__pagesize = (auxvt[AT_PAGESZ].a_un.a_val)? auxvt[AT_PAGESZ].a_un.a_val : PAGE_SIZE;
|
|
|
|
|