summaryrefslogtreecommitdiff
path: root/ldso/ldso/ld_hash.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-13 06:05:01 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-13 06:05:01 +0000
commit8fbaabf32397d26402f6f1e1165a31030630346c (patch)
tree72de5bff0afb995726fc3d941756abe28916f306 /ldso/ldso/ld_hash.h
parente3424a396a633d010bc2c91dbd6cb61ae6366645 (diff)
This takes about 6k off the size of the x86 shared lib loader...
-Erik
Diffstat (limited to 'ldso/ldso/ld_hash.h')
-rw-r--r--ldso/ldso/ld_hash.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/ldso/ldso/ld_hash.h b/ldso/ldso/ld_hash.h
index 1ee32672b..9cd2894f8 100644
--- a/ldso/ldso/ld_hash.h
+++ b/ldso/ldso/ld_hash.h
@@ -71,44 +71,8 @@ extern char * _dl_find_hash(char * name, struct dyn_elf * rpnt1,
int copyrel);
extern int _dl_linux_dynamic_link(void);
-#if defined mc68000 || defined __arm__
-/* On some arches constant strings are referenced through the GOT. */
-/* XXX Requires load_addr to be defined. */
-#define SEND_STDERR(X) \
- { const char *__s = (X); \
- if (__s < (const char *) load_addr) __s += load_addr; \
- _dl_write (2, __s, _dl_strlen_inline (__s)); \
- }
-#else
-#define SEND_STDERR(X) _dl_write(2, X, _dl_strlen_inline(X));
-#endif
-
-#define SEND_ADDRESS_STDERR(X, add_a_newline) { \
- char tmp[13], *tmp1; \
- _dl_memset_inline(tmp, 0, sizeof(tmp)); \
- tmp1=_dl_simple_ltoahex_inline( tmp, (unsigned long)(X)); \
- _dl_write(2, tmp1, _dl_strlen_inline(tmp1)); \
- if (add_a_newline) { \
- tmp[0]='\n'; \
- _dl_write(2, tmp, 1); \
- } \
-};
-
-#define SEND_NUMBER_STDERR(X, add_a_newline) { \
- char tmp[13], *tmp1; \
- _dl_memset_inline(tmp, 0, sizeof(tmp)); \
- tmp1=_dl_simple_ltoahex_inline( tmp, (unsigned long)(X)); \
- _dl_write(2, tmp1, _dl_strlen_inline(tmp1)); \
- if (add_a_newline) { \
- tmp[0]='\n'; \
- _dl_write(2, tmp, 1); \
- } \
-};
-
-extern int _dl_fdprintf(int, const char *, ...);
extern char * _dl_library_path;
extern char * _dl_not_lazy;
-extern char * _dl_strdup(const char *);
extern unsigned long _dl_elf_hash(const char * name);
static inline int _dl_symbol(char * name)