Browse Source

Remove HAVE_ELF

Peter S. Mazinger 19 years ago
parent
commit
b91bb097ca

+ 0 - 6
Makerules

@@ -151,10 +151,8 @@ $(top_builddir)lib/interp.c:
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)$(INSTALL) -d $(dir $@)
 	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
 	$(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@
 	$(Q)echo "#include <features.h>" >> $@
 	$(Q)echo "#include <features.h>" >> $@
-	$(Q)echo "#ifdef __HAVE_ELF__" >> $@
 	$(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
 	$(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \
 		"(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
 		"(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@
-	$(Q)echo "#endif" >> $@
 
 
 $(interp): $(top_builddir)lib/interp.c
 $(interp): $(top_builddir)lib/interp.c
 	$(compile.c)
 	$(compile.c)
@@ -169,11 +167,7 @@ $(libc):
 $(headers_dep):
 $(headers_dep):
 	@cd $(top_builddir); $(MAKE) headers
 	@cd $(top_builddir); $(MAKE) headers
 
 
-#ifeq ($(HAVE_ELF),y)
 CRT=crt1
 CRT=crt1
-#else
-#CRT=crt0
-#endif
 
 
 ifeq ($(HAVE_SHARED),y)
 ifeq ($(HAVE_SHARED),y)
 CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o
 CRTS=$(top_builddir)lib/$(CRT).o $(top_builddir)lib/S$(CRT).o

+ 0 - 4
Rules.mak

@@ -432,10 +432,6 @@ ifneq ($(DOASSERTS),y)
 CFLAGS+=-DNDEBUG
 CFLAGS+=-DNDEBUG
 endif
 endif
 
 
-ifneq ($(strip $(C_SYMBOL_PREFIX)),"")
-CFLAGS+=-D__SYMBOL_PREFIX=1
-endif
-
 # moved from ldso/{ldso,libdl}
 # moved from ldso/{ldso,libdl}
 # BEWARE!!! At least mips* will die if -O0 is used!!!
 # BEWARE!!! At least mips* will die if -O0 is used!!!
 ifeq ($(TARGET_ARCH),mips)
 ifeq ($(TARGET_ARCH),mips)

+ 0 - 2
debian/config

@@ -25,7 +25,6 @@
 #
 #
 # Target Architecture Features and Options
 # Target Architecture Features and Options
 #
 #
-HAVE_ELF=y
 # ARCH_SUPPORTS_LITTLE_ENDIAN is not set
 # ARCH_SUPPORTS_LITTLE_ENDIAN is not set
 TARGET_ARCH="none"
 TARGET_ARCH="none"
 # ARCH_LITTLE_ENDIAN is not set
 # ARCH_LITTLE_ENDIAN is not set
@@ -53,7 +52,6 @@ UCLIBC_HAS_FLOATS=y
 HAS_FPU=y
 HAS_FPU=y
 DO_C99_MATH=y
 DO_C99_MATH=y
 KERNEL_SOURCE="/usr/src/linux"
 KERNEL_SOURCE="/usr/src/linux"
-C_SYMBOL_PREFIX=""
 HAVE_DOT_CONFIG=y
 HAVE_DOT_CONFIG=y
 
 
 #
 #

+ 1 - 1
docs/PORTING

@@ -11,7 +11,7 @@ you are hacking on.
 - Initially you will want to disable shared libraries, since making
 - Initially you will want to disable shared libraries, since making
    the shared library loader work requires you first have basic architecture
    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
    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 ===
 === libc sysdeps ===

+ 3 - 7
extra/Configs/Config.alpha

@@ -3,18 +3,14 @@
 # see extra/config/Kconfig-language.txt
 # 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
 config ARCH_SUPPORTS_LITTLE_ENDIAN
 	bool
 	bool
 	default y
 	default y
 
 
 config TARGET_ARCH
 config TARGET_ARCH
+	select ARCH_HAS_MMU
+	select ARCH_HAS_NO_LDSO
+	select UCLIBC_HAS_LFS
 	default "alpha"
 	default "alpha"
 
 
 config ARCH_CFLAGS
 config ARCH_CFLAGS

+ 0 - 4
extra/Configs/Config.arm

@@ -3,10 +3,6 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config TARGET_ARCH
 config TARGET_ARCH
 	default "arm"
 	default "arm"
 
 

+ 1 - 9
extra/Configs/Config.bfin

@@ -4,20 +4,12 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "bfin"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
 	select ARCH_LITTLE_ENDIAN
 	select ARCH_LITTLE_ENDIAN
-	default y
+	default "bfin"
 
 
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string
 
 
 config LIBGCC_CFLAGS
 config LIBGCC_CFLAGS
 	string
 	string
-
-config HAVE_ELF
-	bool
-	default y

+ 0 - 4
extra/Configs/Config.cris

@@ -3,10 +3,6 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config TARGET_ARCH
 config TARGET_ARCH
 	default "cris"
 	default "cris"
 
 

+ 2 - 6
extra/Configs/Config.e1

@@ -3,17 +3,13 @@
 # see extra/config/Kconfig-language.txt
 # 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
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y
 
 
 config TARGET_ARCH
 config TARGET_ARCH
+	select ARCH_HAS_NO_MMU
+	select HAVE_NO_SHARED
 	default "e1"
 	default "e1"
 
 
 config ARCH_E1 
 config ARCH_E1 

+ 1 - 9
extra/Configs/Config.frv

@@ -3,14 +3,10 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
+config TARGET_ARCH
-	bool
 	select UCLIBC_HAS_FPU
 	select UCLIBC_HAS_FPU
 	select ARCH_BIG_ENDIAN
 	select ARCH_BIG_ENDIAN
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
-	default y
-
-config TARGET_ARCH
 	string
 	string
 	default "frv"
 	default "frv"
 
 
@@ -19,7 +15,3 @@ config ARCH_CFLAGS
 
 
 config LIBGCC_CFLAGS
 config LIBGCC_CFLAGS
 	string
 	string
-
-config HAVE_DOT_HIDDEN
-	bool
-	default y

+ 1 - 5
extra/Configs/Config.h8300

@@ -3,11 +3,6 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
-	bool
-	select ARCH_HAS_NO_MMU
-	default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y
@@ -17,6 +12,7 @@ config ARCH_SUPPORTS_LITTLE_ENDIAN
 	default y
 	default y
 
 
 config TARGET_ARCH
 config TARGET_ARCH
+	select ARCH_HAS_NO_MMU
 	default "h8300"
 	default "h8300"
 
 
 choice
 choice

+ 1 - 5
extra/Configs/Config.hppa

@@ -4,15 +4,11 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "hppa"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_MMU
 	select ARCH_HAS_MMU
 	select HAS_NO_THREADS
 	select HAS_NO_THREADS
 	select ARCH_HAS_NO_LDSO
 	select ARCH_HAS_NO_LDSO
 	select HAVE_NO_SSP
 	select HAVE_NO_SSP
-	default y
+	default "hppa"
 
 
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool

+ 1 - 5
extra/Configs/Config.i386

@@ -3,12 +3,8 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
-	bool
-	select ARCH_HAS_MMU
-	default y
-
 config TARGET_ARCH
 config TARGET_ARCH
+	select ARCH_HAS_MMU
 	string
 	string
 	default "i386"
 	default "i386"
 
 

+ 1 - 5
extra/Configs/Config.i960

@@ -4,13 +4,9 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "i960"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
 	select HAS_NO_THREADS
 	select HAS_NO_THREADS
-	default n
+	default "i960"
 
 
 config ARCH_SUPPORTS_LITTLE_ENDIAN
 config ARCH_SUPPORTS_LITTLE_ENDIAN
 	bool
 	bool

+ 0 - 8
extra/Configs/Config.m68k

@@ -6,10 +6,6 @@
 config TARGET_ARCH
 config TARGET_ARCH
 	default "m68k"
 	default "m68k"
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y
@@ -20,7 +16,3 @@ config ARCH_CFLAGS
 
 
 config LIBGCC_CFLAGS
 config LIBGCC_CFLAGS
 	string
 	string
-
-config HAVE_ELF
-	bool
-	default y

+ 1 - 5
extra/Configs/Config.microblaze

@@ -4,12 +4,8 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "microblaze"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
-	default y
+	default "microblaze"
 
 
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool

+ 0 - 4
extra/Configs/Config.mips

@@ -6,10 +6,6 @@
 config TARGET_ARCH
 config TARGET_ARCH
 	default "mips"
 	default "mips"
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string
 	default "-mno-split-addresses"
 	default "-mno-split-addresses"

+ 1 - 5
extra/Configs/Config.nios

@@ -4,14 +4,10 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "nios"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
 	select ARCH_LITTLE_ENDIAN
 	select ARCH_LITTLE_ENDIAN
 	select HAVE_NO_PIC
 	select HAVE_NO_PIC
-	default y
+	default "nios"
 
 
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string

+ 1 - 5
extra/Configs/Config.nios2

@@ -4,14 +4,10 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "nios2"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
 	select ARCH_LITTLE_ENDIAN
 	select ARCH_LITTLE_ENDIAN
 	select HAVE_NO_PIC
 	select HAVE_NO_PIC
-	default y
+	default "nios2"
 
 
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string

+ 1 - 5
extra/Configs/Config.powerpc

@@ -4,12 +4,8 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "powerpc"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_MMU
 	select ARCH_HAS_MMU
-	default y
+	default "powerpc"
 
 
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool

+ 0 - 8
extra/Configs/Config.sh

@@ -6,20 +6,12 @@
 config TARGET_ARCH
 config TARGET_ARCH
 	default "sh"
 	default "sh"
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string
 
 
 config LIBGCC_CFLAGS
 config LIBGCC_CFLAGS
 	string
 	string
 
 
-config HAVE_DOT_HIDDEN
-	bool
-	default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y

+ 0 - 8
extra/Configs/Config.sh64

@@ -6,20 +6,12 @@
 config TARGET_ARCH
 config TARGET_ARCH
 	default "sh64"
 	default "sh64"
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config ARCH_CFLAGS
 config ARCH_CFLAGS
 	string
 	string
 
 
 config LIBGCC_CFLAGS
 config LIBGCC_CFLAGS
 	string
 	string
 
 
-config HAVE_DOT_HIDDEN
-	bool
-	default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y

+ 0 - 4
extra/Configs/Config.sparc

@@ -6,10 +6,6 @@
 config TARGET_ARCH
 config TARGET_ARCH
 	default "sparc"
 	default "sparc"
 
 
-config HAVE_ELF
-	bool
-	default y
-
 config ARCH_SUPPORTS_BIG_ENDIAN
 config ARCH_SUPPORTS_BIG_ENDIAN
 	bool
 	bool
 	default y
 	default y

+ 1 - 5
extra/Configs/Config.v850

@@ -4,13 +4,9 @@
 #
 #
 
 
 config TARGET_ARCH
 config TARGET_ARCH
-	default "v850"
-
-config HAVE_ELF
-	bool
 	select ARCH_HAS_NO_MMU
 	select ARCH_HAS_NO_MMU
 	select HAVE_NO_PIC
 	select HAVE_NO_PIC
-	default y
+	default "v850"
 
 
 config ARCH_SUPPORTS_LITTLE_ENDIAN
 config ARCH_SUPPORTS_LITTLE_ENDIAN
 	bool
 	bool

+ 1 - 5
extra/Configs/Config.x86_64

@@ -3,13 +3,9 @@
 # see extra/config/Kconfig-language.txt
 # see extra/config/Kconfig-language.txt
 #
 #
 
 
-config HAVE_ELF
+config TARGET_ARCH
-	bool
 	select ARCH_HAS_MMU
 	select ARCH_HAS_MMU
 	select UCLIBC_HAS_LFS
 	select UCLIBC_HAS_LFS
-	default y
-
-config TARGET_ARCH
 	string
 	string
 	default "x86_64"
 	default "x86_64"
 
 

+ 14 - 22
include/libc-internal.h

@@ -22,8 +22,6 @@
 #include <features.h>
 #include <features.h>
 #include <bits/uClibc_arch_features.h>
 #include <bits/uClibc_arch_features.h>
 
 
-#define HAVE_ELF 1
-
 #ifdef __UCLIBC_NO_UNDERSCORES__
 #ifdef __UCLIBC_NO_UNDERSCORES__
 # define NO_UNDERSCORES
 # define NO_UNDERSCORES
 #else
 #else
@@ -197,35 +195,29 @@
 
 
 #endif /* __ASSEMBLER__ */
 #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.  */
 /* 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");
   asm (".section " section_string "\n\t.previous");
 
 
 /* Tacking on "\n\t#" to the section name makes gcc put it's bogus
 /* 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.  */
    section attributes on what looks like a comment to the assembler.  */
-# ifdef __sparc__ //HAVE_SECTION_QUOTES
+#ifdef __sparc__ //HAVE_SECTION_QUOTES
-#  define __sec_comment "\"\n\t#\""
+# define __sec_comment "\"\n\t#\""
-# else
+#else
-#  define __sec_comment "\n\t#"
+# define __sec_comment "\n\t#"
-# endif
+#endif
-# ifdef __cris__
+
-#  define link_warning(symbol, msg)
+/* When a reference to SYMBOL is encountered, the linker will emit a
-# else
+   warning message MSG.  */
-#  define link_warning(symbol, msg) \
+#ifdef __cris__
+# define link_warning(symbol, msg)
+#else
+# define link_warning(symbol, msg) \
   __make_section_unallocated (".gnu.warning." #symbol) \
   __make_section_unallocated (".gnu.warning." #symbol) \
   static const char __evoke_link_warning_##symbol[]	\
   static const char __evoke_link_warning_##symbol[]	\
     __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
     __attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
     = msg;
     = msg;
-# endif
+#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 */
 
 
 #ifndef weak_function
 #ifndef weak_function
 /* If we do not have the __attribute__ ((weak)) syntax, there is no way we
 /* If we do not have the __attribute__ ((weak)) syntax, there is no way we

+ 0 - 4
libc/sysdeps/linux/h8300/crt0.S

@@ -56,12 +56,8 @@ __exit:
  */
  */
 empty_func:
 empty_func:
 	rts
 	rts
-#if defined(__HAVE_ELF__)
 	.weak atexit
 	.weak atexit
 	atexit = empty_func
 	atexit = empty_func
-#else
-	.set atexit,empty_func
-#endif
 
 
 
 
 /* Define a symbol for the first piece of initialized data.  */
 /* Define a symbol for the first piece of initialized data.  */

+ 0 - 2
libc/sysdeps/linux/h8300/vfork.S

@@ -14,9 +14,7 @@
 	.align 2
 	.align 2
 	.globl _errno
 	.globl _errno
 	.globl _vfork
 	.globl _vfork
-#if defined __HAVE_ELF__
 	.type	 vfork,@function
 	.type	 vfork,@function
-#endif
 _vfork:
 _vfork:
 	mov.l	@sp+, er1
 	mov.l	@sp+, er1
 	sub.l	er0,er0
 	sub.l	er0,er0

+ 1 - 2
libc/sysdeps/linux/i960/README

@@ -16,8 +16,7 @@ prepended underscore
 --------------------
 --------------------
 
 
 As the i960 compiler prepends an underscore to symbols, it is critical that
 As the i960 compiler prepends an underscore to symbols, it is critical that
-the Config file define __C_SYMBOL_PREFIX__ as
+bits/uClibc_arch_features.h undefines __UCLIBC_NO_UNDERSCORES__
-    __C_SYMBOL_PREFIX__ = _
 to make sure that underscores are applied to symbol names when needed.
 to make sure that underscores are applied to symbol names when needed.
 
 
 
 

+ 0 - 4
libc/sysdeps/linux/m68k/Makefile.arch

@@ -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
 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
 include $(top_srcdir)libc/sysdeps/linux/Makefile.commonarch

+ 0 - 2
libc/sysdeps/linux/m68k/vfork.S

@@ -18,9 +18,7 @@
 	.align 2
 	.align 2
 	.globl errno
 	.globl errno
 	.globl	vfork
 	.globl	vfork
-#ifdef __HAVE_ELF__
 	.type	vfork,@function
 	.type	vfork,@function
-#endif
 
 
 vfork:
 vfork:
 	movl	%sp@+, %a1               /* save the return address for later */
 	movl	%sp@+, %a1               /* save the return address for later */

+ 0 - 2
libc/sysdeps/linux/nios/vfork.S

@@ -23,9 +23,7 @@
    .text
    .text
    .align 2
    .align 2
    .globl vfork
    .globl vfork
-#if defined __HAVE_ELF__
    .type  vfork,@function
    .type  vfork,@function
-#endif
 vfork:
 vfork:
 	MOVIP	%g1, __NR_vfork
 	MOVIP	%g1, __NR_vfork
 	trap	63
 	trap	63

+ 2 - 2
libc/sysdeps/linux/sh/clone.S

@@ -25,7 +25,7 @@
 #include <bits/errno.h>
 #include <bits/errno.h>
 
 
 
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 #define PLTJMP(_x)	_x##@PLT
 #define PLTJMP(_x)	_x##@PLT
 #else
 #else
 #define PLTJMP(_x)	_x
 #define PLTJMP(_x)	_x
@@ -98,7 +98,7 @@ clone:
 
 
 	/* we are done, passing the return value through r0  */
 	/* we are done, passing the return value through r0  */
 	mov.l	.L1, r1
 	mov.l	.L1, r1
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 	mov.l	r12, @-r15
 	mov.l	r12, @-r15
 	sts.l	pr, @-r15
 	sts.l	pr, @-r15
 	mov	r0, r4
 	mov	r0, r4

+ 1 - 1
libc/sysdeps/linux/sh/setjmp.S

@@ -77,7 +77,7 @@ __sigsetjmp_intern:
 	mov.l	r9, @-r4
 	mov.l	r9, @-r4
 	mov.l	r8, @-r4
 	mov.l	r8, @-r4
 
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 	mov.l	.LG, r2
 	mov.l	.LG, r2
 	mova	.LG, r0
 	mova	.LG, r0
 	add	r0, r2
 	add	r0, r2

+ 2 - 2
libc/sysdeps/linux/sh/syscall_error.S

@@ -3,7 +3,7 @@ __syscall_error:
 	/* Call errno_location, store '-r4' in errno and return -1 */
 	/* Call errno_location, store '-r4' in errno and return -1 */
 	mov.l	r12, @-r15
 	mov.l	r12, @-r15
 	sts.l	pr, @-r15
 	sts.l	pr, @-r15
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 	mova	.LG, r0
 	mova	.LG, r0
 	mov.l	.LG, r12
 	mov.l	.LG, r12
 	add	r0, r12
 	add	r0, r12
@@ -27,7 +27,7 @@ __syscall_error:
 
 
 	.align	4
 	.align	4
 
 
-#if defined __HAVE_ELF__ && defined __HAVE_SHARED__ 
+#ifdef __HAVE_SHARED__ 
 1:	.long   __errno_location@GOT
 1:	.long   __errno_location@GOT
 .LG:	.long	_GLOBAL_OFFSET_TABLE_
 .LG:	.long	_GLOBAL_OFFSET_TABLE_
 #else
 #else

+ 1 - 1
libpthread/linuxthreads.old/attr.c

@@ -49,7 +49,7 @@ int pthread_attr_init(pthread_attr_t *attr)
 
 
 /* uClibc: leave out this for now. */
 /* uClibc: leave out this for now. */
 #if DO_PTHREAD_VERSIONING_WITH_UCLIBC
 #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);
 default_symbol_version (__pthread_attr_init_2_1, pthread_attr_init, GLIBC_2.1);
 
 
 int __pthread_attr_init_2_0(pthread_attr_t *attr)
 int __pthread_attr_init_2_0(pthread_attr_t *attr)