summaryrefslogtreecommitdiff
path: root/include/link.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-17 04:55:28 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-17 04:55:28 +0000
commitc60304b87847ff5ddb8df859d3d06d6cfc446b80 (patch)
tree0e88e61f24a00ee22b0653a0e581fba95f087450 /include/link.h
parent4e5effa2e13fa5131e9b1bf40451a6acefb93b36 (diff)
fold bfin-specific link.h back into common one as suggested by Peter S. Mazinger
Diffstat (limited to 'include/link.h')
-rw-r--r--include/link.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/link.h b/include/link.h
index afff90d99..14489816f 100644
--- a/include/link.h
+++ b/include/link.h
@@ -29,6 +29,12 @@
#include <tls.h>
#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)
@@ -78,7 +84,7 @@ extern struct r_debug _r_debug;
*/
extern ElfW(Dyn) _DYNAMIC[];
-#ifdef __FRV_FDPIC__
+#ifdef ___LINK_H_FDPIC___
# include <bits/elf-fdpic.h>
#endif
@@ -93,7 +99,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 __FRV_FDPIC__
+#ifdef ___LINK_H_FDPIC___
struct elf32_fdpic_loadaddr l_addr;
#else
ElfW(Addr) l_addr; /* Base address shared object is loaded at. */
@@ -131,7 +137,7 @@ struct link_map
struct dl_phdr_info
{
-#ifdef __FRV_FDPIC__
+#ifdef ___LINK_H_FDPIC___
struct elf32_fdpic_loadaddr dlpi_addr;
#else
ElfW(Addr) dlpi_addr;
@@ -163,4 +169,6 @@ __END_DECLS
#endif
+#undef ___LINK_H_FDPIC___
+
#endif /* link.h */