From b42d4129e52f0c694c831eda3ce1c6763903bafa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 8 Feb 2007 21:55:28 +0000 Subject: use __FDPIC__ from the compiler rather than setting our own --- include/link.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/link.h b/include/link.h index e9499bc17..b69dcda5b 100644 --- a/include/link.h +++ b/include/link.h @@ -29,12 +29,6 @@ #include #endif -#if defined __FRV_FDPIC__ || defined __BFIN_FDPIC__ -# define ___LINK_H_FDPIC___ -#else -# undef ___LINK_H_FDPIC___ -#endif - /* We use this macro to refer to ELF types independent of the native wordsize. `ElfW(TYPE)' is used in place of `Elf32_TYPE' or `Elf64_TYPE'. */ #define ElfW(type) _ElfW (Elf, __ELF_NATIVE_CLASS, type) @@ -84,7 +78,7 @@ extern struct r_debug _r_debug; */ extern ElfW(Dyn) _DYNAMIC[]; -#ifdef ___LINK_H_FDPIC___ +#ifdef __FDPIC__ # include #endif @@ -99,7 +93,7 @@ struct link_map /* These first few members are part of the protocol with the debugger. This is the same format used in SVR4. */ -#ifdef ___LINK_H_FDPIC___ +#ifdef __FDPIC__ struct elf32_fdpic_loadaddr l_addr; #else ElfW(Addr) l_addr; /* Base address shared object is loaded at. */ @@ -179,7 +173,7 @@ enum struct dl_phdr_info { -#ifdef ___LINK_H_FDPIC___ +#ifdef __FDPIC__ struct elf32_fdpic_loadaddr dlpi_addr; #else ElfW(Addr) dlpi_addr; @@ -241,6 +235,4 @@ __END_DECLS #endif -#undef ___LINK_H_FDPIC___ - #endif /* link.h */ -- cgit v1.2.3