diff options
Diffstat (limited to 'gcc/config/i386/linux.h')
-rw-r--r-- | gcc/config/i386/linux.h | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/gcc/config/i386/linux.h b/gcc/config/i386/linux.h index 85e6cf2..08b859a 100644 --- a/gcc/config/i386/linux.h +++ b/gcc/config/i386/linux.h @@ -83,11 +83,7 @@ Boston, MA 02111-1307, USA. */ while (0) #undef CPP_SPEC -#ifdef USE_GNULIBC_1 -#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}" -#else #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" -#endif #undef CC1_SPEC #define CC1_SPEC "%(cc1_cpu) %{profile:-p}" @@ -109,11 +105,7 @@ Boston, MA 02111-1307, USA. */ /* If ELF is the default format, we should not use /lib/elf. */ #define LINK_EMULATION "elf_i386" -#ifdef USE_GNULIBC_1 -# define DYNAMIC_LINKER "/lib/ld-linux.so.1" -#else -# define DYNAMIC_LINKER "/lib/ld-linux.so.2" -#endif +#define DYNAMIC_LINKER "/lib/ld-linux.so.2" #undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ @@ -153,24 +145,6 @@ Boston, MA 02111-1307, USA. */ } while (0) #endif -#if defined(__PIC__) && defined (USE_GNULIBC_1) -/* This is a kludge. The i386 GNU/Linux dynamic linker needs ___brk_addr, - __environ and atexit. We have to make sure they are in the .dynsym - section. We do this by forcing the assembler to create undefined - references to these symbols in the object file. */ -#undef CRT_CALL_STATIC_FUNCTION -#define CRT_CALL_STATIC_FUNCTION(SECTION_OP, FUNC) \ - asm (SECTION_OP "\n\t" \ - "call " USER_LABEL_PREFIX #FUNC "\n" \ - TEXT_SECTION_ASM_OP "\n\t" \ - ".extern ___brk_addr\n\t" \ - ".type ___brk_addr,@object\n\t" \ - ".extern __environ\n\t" \ - ".type __environ,@object\n\t" \ - ".extern atexit\n\t" \ - ".type atexit,@function"); -#endif - /* Handle special EH pointer encodings. Absolute, pc-relative, and indirect are handled automatically. */ #define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \ @@ -211,11 +185,11 @@ Boston, MA 02111-1307, USA. */ state data appropriately. See unwind-dw2.c for the structs. */ #ifdef IN_LIBGCC2 -/* There's no sys/ucontext.h for some (all?) libc1, so no +/* There's no sys/ucontext.h for glibc 2.0, so no signal-turned-exceptions for them. There's also no configure-run for the target, so we can't check on (e.g.) HAVE_SYS_UCONTEXT_H. Using the - target libc1 macro should be enough. */ -#if !(defined (USE_GNULIBC_1) || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)) + target libc version macro should be enough. */ +#if !(__GLIBC__ == 2 && __GLIBC_MINOR__ == 0) #include <signal.h> #include <sys/ucontext.h> @@ -274,5 +248,5 @@ Boston, MA 02111-1307, USA. */ (FS)->retaddr_column = 8; \ goto SUCCESS; \ } while (0) -#endif /* not USE_GNULIBC_1 */ +#endif /* not glibc 2.0 */ #endif /* IN_LIBGCC2 */ |