summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_hash.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-06-14 21:37:48 +0000
committerEric Andersen <andersen@codepoet.org>2001-06-14 21:37:48 +0000
commit862fef6971ef660a985c790e3643187e5ecb855d (patch)
treed70a00b981442842d4bd84bfd456a4f249fb2e5b /ldso/ldso/ld_hash.h
parent311b479b519b33774b6bb75d5c4961f2e2498fc2 (diff)
Yet more ldso cleanups. Be more discriminating about when using inlines
and when using real functions. Make things be more portable by providing a default C routine to locate the got. -Erik
Diffstat (limited to 'ldso/ldso/ld_hash.h')
-rw-r--r--ldso/ldso/ld_hash.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ldso/ldso/ld_hash.h b/ldso/ldso/ld_hash.h
index 74bac2f7d..cc1c56c42 100644
--- a/ldso/ldso/ld_hash.h
+++ b/ldso/ldso/ld_hash.h
@@ -77,25 +77,25 @@ extern int _dl_linux_dynamic_link(void);
#define SEND_STDERR(X) \
{ const char *__s = (X); \
if (__s < (const char *) load_addr) __s += load_addr; \
- _dl_write (2, __s, _dl_strlen (__s)); \
+ _dl_write (2, __s, _dl_strlen_inline (__s)); \
}
#else
-#define SEND_STDERR(X) _dl_write(2, X, _dl_strlen(X));
+#define SEND_STDERR(X) _dl_write(2, X, _dl_strlen_inline(X));
#endif
extern int _dl_fdprintf(int, const char *, ...);
extern char * _dl_library_path;
extern char * _dl_not_lazy;
extern char * _dl_strdup(const char *);
-extern inline int _dl_symbol(char * name);
-unsigned long _dl_elf_hash(const char * name);
+extern unsigned long _dl_elf_hash(const char * name);
-extern inline int _dl_symbol(char * name)
+static inline int _dl_symbol(char * name)
{
if(name[0] != '_' || name[1] != 'd' || name[2] != 'l' || name[3] != '_')
return 0;
return 1;
}
+
#define DL_ERROR_NOFILE 1
#define DL_ERROR_NOZERO 2
#define DL_ERROR_NOTELF 3