OSDN Git Service

Remove HAVE_ELF
authorPeter S. Mazinger <ps.m@gmx.net>
Thu, 19 Jan 2006 17:50:23 +0000 (17:50 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Thu, 19 Jan 2006 17:50:23 +0000 (17:50 -0000)
36 files changed:
Makerules
Rules.mak
debian/config
docs/PORTING
extra/Configs/Config.alpha
extra/Configs/Config.arm
extra/Configs/Config.bfin
extra/Configs/Config.cris
extra/Configs/Config.e1
extra/Configs/Config.frv
extra/Configs/Config.h8300
extra/Configs/Config.hppa
extra/Configs/Config.i386
extra/Configs/Config.i960
extra/Configs/Config.m68k
extra/Configs/Config.microblaze
extra/Configs/Config.mips
extra/Configs/Config.nios
extra/Configs/Config.nios2
extra/Configs/Config.powerpc
extra/Configs/Config.sh
extra/Configs/Config.sh64
extra/Configs/Config.sparc
extra/Configs/Config.v850
extra/Configs/Config.x86_64
include/libc-internal.h
libc/sysdeps/linux/h8300/crt0.S
libc/sysdeps/linux/h8300/vfork.S
libc/sysdeps/linux/i960/README
libc/sysdeps/linux/m68k/Makefile.arch
libc/sysdeps/linux/m68k/vfork.S
libc/sysdeps/linux/nios/vfork.S
libc/sysdeps/linux/sh/clone.S
libc/sysdeps/linux/sh/setjmp.S
libc/sysdeps/linux/sh/syscall_error.S
libpthread/linuxthreads.old/attr.c

index 95acacc..14b05b7 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -151,10 +151,8 @@ $(top_builddir)lib/interp.c:
        $(Q)$(INSTALL) -d $(dir $@)
        $(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
        $(Q)echo "#include <features.h>" >> $@
-       $(Q)echo "#ifdef __HAVE_ELF__" >> $@
        $(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
                "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
-       $(Q)echo "#endif" >> $@
 
 $(interp): $(top_builddir)lib/interp.c
        $(compile.c)
@@ -169,11 +167,7 @@ $(libc):
 $(headers_dep):
        @cd $(top_builddir); $(MAKE) headers
 
-#ifeq ($(HAVE_ELF),y)
 CRT=crt1
-#else
-#CRT=crt0
-#endif
 
 ifeq ($(HAVE_SHARED),y)
 CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o
index 41cc0c2..590eed2 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -432,10 +432,6 @@ ifneq ($(DOASSERTS),y)
 CFLAGS+=-DNDEBUG
 endif
 
-ifneq ($(strip $(C_SYMBOL_PREFIX)),"")
-CFLAGS+=-D__SYMBOL_PREFIX=1
-endif
-
 # moved from ldso/{ldso,libdl}
 # BEWARE!!! At least mips* will die if -O0 is used!!!
 ifeq ($(TARGET_ARCH),mips)
index 8ec73e2..301f7b3 100644 (file)
@@ -25,7 +25,6 @@
 #
 # Target Architecture Features and Options
 #
-HAVE_ELF=y
 # ARCH_SUPPORTS_LITTLE_ENDIAN is not set
 TARGET_ARCH="none"
 # ARCH_LITTLE_ENDIAN is not set
@@ -53,7 +52,6 @@ UCLIBC_HAS_FLOATS=y
 HAS_FPU=y
 DO_C99_MATH=y
 KERNEL_SOURCE="/usr/src/linux"
-C_SYMBOL_PREFIX=""
 HAVE_DOT_CONFIG=y
 
 #
index 469effb..5c1a398 100644 (file)
@@ -11,7 +11,7 @@ you are hacking on.
 - Initially you will want to disable shared libraries, since making
    the shared library loader work requires you first have basic architecture
    support working.  Thus you should add HAVE_NO_SHARED and ARCH_HAS_NO_LDSO
-   to Config.ARCH's HAVE_ELF
+   to Config.ARCH's TARGET_ARCH
 
 ====================
 === libc sysdeps ===
index 47545ce..1b5768b 100644 (file)
@@ -3,18 +3,14 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       select ARCH_HAS_MMU
-       select ARCH_HAS_NO_LDSO
-       select UCLIBC_HAS_LFS
-       bool
-       default y
-
 config ARCH_SUPPORTS_LITTLE_ENDIAN
        bool
        default y
 
 config TARGET_ARCH
+       select ARCH_HAS_MMU
+       select ARCH_HAS_NO_LDSO
+       select UCLIBC_HAS_LFS
        default "alpha"
 
 config ARCH_CFLAGS
index fc775ba..62ebf73 100644 (file)
@@ -3,10 +3,6 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
-       default y
-
 config TARGET_ARCH
        default "arm"
 
index 9863510..c65b5fa 100644 (file)
@@ -4,20 +4,12 @@
 #
 
 config TARGET_ARCH
-       default "bfin"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
        select ARCH_LITTLE_ENDIAN
-       default y
+       default "bfin"
 
 config ARCH_CFLAGS
        string
 
 config LIBGCC_CFLAGS
        string
-
-config HAVE_ELF
-       bool
-       default y
index c8fc23e..07f2cbe 100644 (file)
@@ -3,10 +3,6 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
-       default y
-
 config TARGET_ARCH
        default "cris"
 
index 841ac9b..d134a0c 100644 (file)
@@ -3,17 +3,13 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       select ARCH_HAS_NO_MMU
-       select HAVE_NO_SHARED
-       bool
-       default n
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
 
 config TARGET_ARCH
+       select ARCH_HAS_NO_MMU
+       select HAVE_NO_SHARED
        default "e1"
 
 config ARCH_E1 
index ee523b8..f9ee6ab 100644 (file)
@@ -3,14 +3,10 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
+config TARGET_ARCH
        select UCLIBC_HAS_FPU
        select ARCH_BIG_ENDIAN
        select ARCH_HAS_NO_MMU
-       default y
-
-config TARGET_ARCH
        string
        default "frv"
 
@@ -19,7 +15,3 @@ config ARCH_CFLAGS
 
 config LIBGCC_CFLAGS
        string
-
-config HAVE_DOT_HIDDEN
-       bool
-       default y
index 57fbe8f..c9b74d8 100644 (file)
@@ -3,11 +3,6 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
-       select ARCH_HAS_NO_MMU
-       default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
@@ -17,6 +12,7 @@ config ARCH_SUPPORTS_LITTLE_ENDIAN
        default y
 
 config TARGET_ARCH
+       select ARCH_HAS_NO_MMU
        default "h8300"
 
 choice
index c198e18..2d91b61 100644 (file)
@@ -4,15 +4,11 @@
 #
 
 config TARGET_ARCH
-       default "hppa"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_MMU
        select HAS_NO_THREADS
        select ARCH_HAS_NO_LDSO
        select HAVE_NO_SSP
-       default y
+       default "hppa"
 
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
index 14f575e..7fbce37 100644 (file)
@@ -3,12 +3,8 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
-       select ARCH_HAS_MMU
-       default y
-
 config TARGET_ARCH
+       select ARCH_HAS_MMU
        string
        default "i386"
 
index 336b3d6..17eb6a2 100644 (file)
@@ -4,13 +4,9 @@
 #
 
 config TARGET_ARCH
-       default "i960"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
        select HAS_NO_THREADS
-       default n
+       default "i960"
 
 config ARCH_SUPPORTS_LITTLE_ENDIAN
        bool
index 056172f..abb9335 100644 (file)
@@ -6,10 +6,6 @@
 config TARGET_ARCH
        default "m68k"
 
-config HAVE_ELF
-       bool
-       default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
@@ -20,7 +16,3 @@ config ARCH_CFLAGS
 
 config LIBGCC_CFLAGS
        string
-
-config HAVE_ELF
-       bool
-       default y
index 4eb2e3d..c4fe727 100644 (file)
@@ -4,12 +4,8 @@
 #
 
 config TARGET_ARCH
-       default "microblaze"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
-       default y
+       default "microblaze"
 
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
index bca298a..bc14230 100644 (file)
@@ -6,10 +6,6 @@
 config TARGET_ARCH
        default "mips"
 
-config HAVE_ELF
-       bool
-       default y
-
 config ARCH_CFLAGS
        string
        default "-mno-split-addresses"
index 1c64234..ed86295 100644 (file)
@@ -4,14 +4,10 @@
 #
 
 config TARGET_ARCH
-       default "nios"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
        select ARCH_LITTLE_ENDIAN
        select HAVE_NO_PIC
-       default y
+       default "nios"
 
 config ARCH_CFLAGS
        string
index a57750e..1a98e41 100644 (file)
@@ -4,14 +4,10 @@
 #
 
 config TARGET_ARCH
-       default "nios2"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
        select ARCH_LITTLE_ENDIAN
        select HAVE_NO_PIC
-       default y
+       default "nios2"
 
 config ARCH_CFLAGS
        string
index b0ee1a4..7129f00 100644 (file)
@@ -4,12 +4,8 @@
 #
 
 config TARGET_ARCH
-       default "powerpc"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_MMU
-       default y
+       default "powerpc"
 
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
index fa21596..2443e02 100644 (file)
@@ -6,20 +6,12 @@
 config TARGET_ARCH
        default "sh"
 
-config HAVE_ELF
-       bool
-       default y
-
 config ARCH_CFLAGS
        string
 
 config LIBGCC_CFLAGS
        string
 
-config HAVE_DOT_HIDDEN
-       bool
-       default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
index 3c3ed9d..7bdbe56 100644 (file)
@@ -6,20 +6,12 @@
 config TARGET_ARCH
        default "sh64"
 
-config HAVE_ELF
-       bool
-       default y
-
 config ARCH_CFLAGS
        string
 
 config LIBGCC_CFLAGS
        string
 
-config HAVE_DOT_HIDDEN
-       bool
-       default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
index e169d48..e5319e9 100644 (file)
@@ -6,10 +6,6 @@
 config TARGET_ARCH
        default "sparc"
 
-config HAVE_ELF
-       bool
-       default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
        bool
        default y
index 2f900fc..9375587 100644 (file)
@@ -4,13 +4,9 @@
 #
 
 config TARGET_ARCH
-       default "v850"
-
-config HAVE_ELF
-       bool
        select ARCH_HAS_NO_MMU
        select HAVE_NO_PIC
-       default y
+       default "v850"
 
 config ARCH_SUPPORTS_LITTLE_ENDIAN
        bool
index 6800226..847fed6 100644 (file)
@@ -3,13 +3,9 @@
 # see extra/config/Kconfig-language.txt
 #
 
-config HAVE_ELF
-       bool
+config TARGET_ARCH
        select ARCH_HAS_MMU
        select UCLIBC_HAS_LFS
-       default y
-
-config TARGET_ARCH
        string
        default "x86_64"
 
index 9f1c36f..21280e4 100644 (file)
@@ -22,8 +22,6 @@
 #include <features.h>
 #include <bits/uClibc_arch_features.h>
 
-#define HAVE_ELF 1
-
 #ifdef __UCLIBC_NO_UNDERSCORES__
 # define NO_UNDERSCORES
 #else
 
 #endif /* __ASSEMBLER__ */
 
-/* When a reference to SYMBOL is encountered, the linker will emit a
-   warning message MSG.  */
-#ifdef HAVE_ELF
-
 /* We want the .gnu.warning.SYMBOL section to be unallocated.  */
-# define __make_section_unallocated(section_string)    \
+#define __make_section_unallocated(section_string)     \
   asm (".section " section_string "\n\t.previous");
 
 /* Tacking on "\n\t#" to the section name makes gcc put it's bogus
    section attributes on what looks like a comment to the assembler.  */
-# ifdef __sparc__ //HAVE_SECTION_QUOTES
-#  define __sec_comment "\"\n\t#\""
-# else
-#  define __sec_comment "\n\t#"
-# endif
-# ifdef __cris__
-#  define link_warning(symbol, msg)
-# else
-#  define link_warning(symbol, msg) \
+#ifdef __sparc__ //HAVE_SECTION_QUOTES
+# define __sec_comment "\"\n\t#\""
+#else
+# define __sec_comment "\n\t#"
+#endif
+
+/* When a reference to SYMBOL is encountered, the linker will emit a
+   warning message MSG.  */
+#ifdef __cris__
+# define link_warning(symbol, msg)
+#else
+# define link_warning(symbol, msg) \
   __make_section_unallocated (".gnu.warning." #symbol) \
   static const char __evoke_link_warning_##symbol[]    \
     __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
     = msg;
-# endif
-#else /* HAVE_ELF */
-# define link_warning(symbol, msg)             \
-     asm (".stabs \"" msg "\",30,0,0,0\n\t"    \
-          ".stabs \"" __USER_LABEL_PREFIX__ #symbol "\",1,0,0,0\n");
-#endif /* HAVE_ELF */
+#endif
 
 #ifndef weak_function
 /* If we do not have the __attribute__ ((weak)) syntax, there is no way we
index a593b88..ebdca18 100644 (file)
@@ -56,12 +56,8 @@ __exit:
  */
 empty_func:
        rts
-#if defined(__HAVE_ELF__)
        .weak atexit
        atexit = empty_func
-#else
-       .set atexit,empty_func
-#endif
 
 
 /* Define a symbol for the first piece of initialized data.  */
index 343bb01..4156fae 100644 (file)
@@ -14,9 +14,7 @@
        .align 2
        .globl _errno
        .globl _vfork
-#if defined __HAVE_ELF__
        .type    vfork,@function
-#endif
 _vfork:
        mov.l   @sp+, er1
        sub.l   er0,er0
index e1ca11f..185fe25 100644 (file)
@@ -16,8 +16,7 @@ prepended underscore
 --------------------
 
 As the i960 compiler prepends an underscore to symbols, it is critical that
-the Config file define __C_SYMBOL_PREFIX__ as
-    __C_SYMBOL_PREFIX__ = _
+bits/uClibc_arch_features.h undefines __UCLIBC_NO_UNDERSCORES__
 to make sure that underscores are applied to symbol names when needed.
 
 
index 1ce72a6..a1ded80 100644 (file)
@@ -9,8 +9,4 @@ CSRC := ptrace.c brk.c __syscall_error.c syscall.c
 
 SSRC := __longjmp.S bsd-_setjmp.S bsd-setjmp.S clone.S setjmp.S vfork.S
 
-ifneq ($(HAVE_ELF),y)
-ARCH_HEADERS := float.h
-endif
-
 include $(top_srcdir)libc/sysdeps/linux/Makefile.commonarch
index ec319d0..58564f7 100644 (file)
@@ -18,9 +18,7 @@
        .align 2
        .globl errno
        .globl  vfork
-#ifdef __HAVE_ELF__
        .type   vfork,@function
-#endif
 
 vfork:
        movl    %sp@+, %a1               /* save the return address for later */
index 3ac3da9..2479fe7 100644 (file)
@@ -23,9 +23,7 @@
    .text
    .align 2
    .globl vfork
-#if defined __HAVE_ELF__
    .type  vfork,@function
-#endif
 vfork:
        MOVIP   %g1, __NR_vfork
        trap    63
index 80c623b..1806313 100644 (file)
@@ -25,7 +25,7 @@
 #include <bits/errno.h>
 
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 #define PLTJMP(_x)     _x##@PLT
 #else
 #define PLTJMP(_x)     _x
@@ -98,7 +98,7 @@ clone:
 
        /* we are done, passing the return value through r0  */
        mov.l   .L1, r1
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
        mov.l   r12, @-r15
        sts.l   pr, @-r15
        mov     r0, r4
index bb87ff0..3296c2b 100644 (file)
@@ -77,7 +77,7 @@ __sigsetjmp_intern:
        mov.l   r9, @-r4
        mov.l   r8, @-r4
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
        mov.l   .LG, r2
        mova    .LG, r0
        add     r0, r2
index 7115120..1764ebf 100644 (file)
@@ -3,7 +3,7 @@ __syscall_error:
        /* Call errno_location, store '-r4' in errno and return -1 */
        mov.l   r12, @-r15
        sts.l   pr, @-r15
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
        mova    .LG, r0
        mov.l   .LG, r12
        add     r0, r12
@@ -27,7 +27,7 @@ __syscall_error:
 
        .align  4
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 1:     .long   __errno_location@GOT
 .LG:   .long   _GLOBAL_OFFSET_TABLE_
 #else
index e5f110b..287f263 100644 (file)
@@ -49,7 +49,7 @@ int pthread_attr_init(pthread_attr_t *attr)
 
 /* uClibc: leave out this for now. */
 #if DO_PTHREAD_VERSIONING_WITH_UCLIBC
-#if defined __HAVE_ELF__ && defined __PIC__ && defined DO_VERSIONING
+#if defined __PIC__ && defined DO_VERSIONING
 default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1);
 
 int __pthread_attr_init_2_0(pthread_attr_t *attr)