summaryrefslogtreecommitdiff
path: root/ldso/include/dl-hash.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-10-15 17:14:40 -0400
committerMike Frysinger <vapier@gentoo.org>2009-10-15 17:14:40 -0400
commit7c7cebfff369ce18923a60f570e15c5c3421f1e4 (patch)
tree5ed1359601216737faab26e319df51ee0e57c647 /ldso/include/dl-hash.h
parent1f5e333a158f4398437287b8b64260371422194f (diff)
ldso: simplify handling of extra _dl_lookup_hash() arg
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'ldso/include/dl-hash.h')
-rw-r--r--ldso/include/dl-hash.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/ldso/include/dl-hash.h b/ldso/include/dl-hash.h
index 496ec0fa5..22042145e 100644
--- a/ldso/include/dl-hash.h
+++ b/ldso/include/dl-hash.h
@@ -137,27 +137,19 @@ extern struct elf_resolve * _dl_add_elf_hash_table(const char * libname,
DL_LOADADDR_TYPE loadaddr, unsigned long * dynamic_info,
unsigned long dynamic_addr, unsigned long dynamic_size);
-#if USE_TLS || defined __FDPIC__
-#define _DL_LOOKUP_HASH_NEEDS_EXTRA_TPNT
-#define _DL_LOOKUP_HASH_EXTRA_TPNT , struct elf_resolve **tpntp
-#else
-#undef _DL_LOOKUP_HASH_NEEDS_EXTRA_TPNT
-#define _DL_LOOKUP_HASH_EXTRA_TPNT
+/* Only need extra arg with some configurations */
+#if !(USE_TLS || defined __FDPIC__)
+# define _dl_lookup_hash(n, r, m, c, t) _dl_lookup_hash(n, r, m, c)
#endif
-
-extern char * _dl_lookup_hash(const char * name, struct dyn_elf * rpnt,
- struct elf_resolve *mytpnt, int type_class
- _DL_LOOKUP_HASH_EXTRA_TPNT);
+extern char *_dl_lookup_hash(const char *name, struct dyn_elf *rpnt,
+ struct elf_resolve *mytpnt, int type_class,
+ struct elf_resolve **tpntp);
static __always_inline char *_dl_find_hash(const char *name, struct dyn_elf *rpnt,
struct elf_resolve *mytpnt, int type_class,
struct elf_resolve **tpntp)
{
-#ifdef _DL_LOOKUP_HASH_NEEDS_EXTRA_TPNT
return _dl_lookup_hash(name, rpnt, mytpnt, type_class, tpntp);
-#else
- return _dl_lookup_hash(name, rpnt, mytpnt, type_class);
-#endif
}
extern int _dl_linux_dynamic_link(void);