Revert "Fix Sparc/Linux host breakage by df70204db53e3611af986f434e74a882bce190ca"
authorBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Sep 2009 19:38:48 +0000 (19:38 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Sep 2009 19:38:48 +0000 (19:38 +0000)
This reverts commit 91b40c5be84a478e98c0416325844a7f66d0efae.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

configure
linux-user/main.c

index 2d46d39..494e9ce 100755 (executable)
--- a/configure
+++ b/configure
@@ -2364,10 +2364,9 @@ if test "$target_softmmu" = "yes" ; then
 fi
 
 if test "$target_user_only" = "yes" -a "$static" = "no" -a \
-  "$user_pie" = "yes" ; then
+       "$user_pie" = "yes" ; then
   cflags="-fpie $cflags"
   ldflags="-pie $ldflags"
-  echo "CONFIG_USER_PIE=y" >> $config_mak
 fi
 
 if test "$target_softmmu" = "yes" -a \( \
index f3455c5..81a1ada 100644 (file)
@@ -48,27 +48,6 @@ int have_guest_base;
 static const char *interp_prefix = CONFIG_QEMU_PREFIX;
 const char *qemu_uname_release = CONFIG_UNAME_RELEASE;
 
-/* for recent libc, we add these dummy symbols which are not declared
-   when generating a linked object (bug in ld ?) */
-#if ((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && \
-     !defined(CONFIG_STATIC)) && !defined(CONFIG_USER_PIE)
-asm(".globl __preinit_array_start\n"
-    ".globl __preinit_array_end\n"
-    ".globl __init_array_start\n"
-    ".globl __init_array_end\n"
-    ".globl __fini_array_start\n"
-    ".globl __fini_array_end\n"
-    ".section \".rodata\"\n"
-    "__preinit_array_start:\n"
-    "__preinit_array_end:\n"
-    "__init_array_start:\n"
-    "__init_array_end:\n"
-    "__fini_array_start:\n"
-    "__fini_array_end:\n"
-    ".long 0\n"
-    ".previous\n");
-#endif
-
 /* XXX: on x86 MAP_GROWSDOWN only works if ESP <= address + 32, so
    we allocate a bigger stack. Need a better solution, for example
    by remapping the process stack directly at the right place */