summaryrefslogtreecommitdiff
path: root/libexec/ld.so/alpha/archdep.h
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2002-02-21 23:17:54 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2002-02-21 23:17:54 +0000
commit0d541fd9920e006280e60dadcdbd301c0b0e1d66 (patch)
tree1f92b0b3c9bb73f0740f3a77dfa9ca121a1f7555 /libexec/ld.so/alpha/archdep.h
parent0ba9fd5be7b2c0adde410a88b340bfc1038e359c (diff)
cleanup of MD/MI ld.so (elf), most changes by art@ cleanup by me.
tested on alpha sparc64 powerpc.
Diffstat (limited to 'libexec/ld.so/alpha/archdep.h')
-rw-r--r--libexec/ld.so/alpha/archdep.h84
1 files changed, 3 insertions, 81 deletions
diff --git a/libexec/ld.so/alpha/archdep.h b/libexec/ld.so/alpha/archdep.h
index c599ab776b6..999d5877d09 100644
--- a/libexec/ld.so/alpha/archdep.h
+++ b/libexec/ld.so/alpha/archdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: archdep.h,v 1.4 2002/02/16 21:27:30 millert Exp $ */
+/* $OpenBSD: archdep.h,v 1.5 2002/02/21 23:17:53 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -44,86 +44,8 @@
#include <elf_abi.h>
#include <machine/reloc.h>
-
-int _dl_write(int, const char *, int);
-
-/*
- * The following functions are declared inline so they can
- * be used before bootstrap linking has been finished.
- */
-static inline void
-_dl_wrstderr(const char *s)
-{
- while(*s) {
- _dl_write(2, s, 1);
- s++;
- }
-}
-
-static inline void *
-_dl_memset(void *p, const char v, size_t c)
-{
- char *ip = p;
-
- while(c--)
- *ip++ = v;
- return(p);
-}
-
-static inline int
-_dl_strlen(const char *p)
-{
- const char *s = p;
-
- while(*s != '\0')
- s++;
- return(s - p);
-}
-
-static inline char *
-_dl_strcpy(char *d, const char *s)
-{
- char *rd = d;
-
- while((*d++ = *s++) != '\0');
-
- return(rd);
-}
-
-static inline int
-_dl_strncmp(const char *d, const char *s, int c)
-{
- while(c-- && *d && *d == *s) {
- d++;
- s++;
- };
- if(c < 0) {
- return(0);
- }
- return(*d - *s);
-}
-
-static inline int
-_dl_strcmp(const char *d, const char *s)
-{
- while(*d && *d == *s) {
- d++;
- s++;
- }
- return(*d - *s);
-}
-
-static inline const char *
-_dl_strchr(const char *p, const int c)
-{
- while(*p) {
- if(*p == c) {
- return(p);
- }
- p++;
- }
- return(0);
-}
+#include "syscall.h"
+#include "util.h"
static inline void
RELOC_RELA(Elf64_Rela *r, const Elf64_Sym *s, Elf64_Addr *p, unsigned long v)