summaryrefslogtreecommitdiffstats
path: root/libexec/rtld-elf/rtld.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-03-14 15:39:59 +0000
committerkib <kib@FreeBSD.org>2012-03-14 15:39:59 +0000
commit6232e80d5b9d3267fc60990bf37056e5e44468d5 (patch)
tree6cb1f7004b97ad903055090950327ef825b31f96 /libexec/rtld-elf/rtld.h
parent2d6797921217c9d1d60d7950f1c8f104eb18b7ae (diff)
downloadFreeBSD-src-6232e80d5b9d3267fc60990bf37056e5e44468d5.zip
FreeBSD-src-6232e80d5b9d3267fc60990bf37056e5e44468d5.tar.gz
Rtld on diet 3.
Stop using strerror(3) in rtld, which brings in msgcat and stdio. Directly access sys_errlist array of errno messages with private rtld_strerror() function. Now, $ size /libexec/ld-elf.so.1 text data bss dec hex filename 96983 2480 8744 108207 1a6af /libexec/ld-elf.so.1 Reviewed by: dim, kan MFC after: 2 weeks
Diffstat (limited to 'libexec/rtld-elf/rtld.h')
-rw-r--r--libexec/rtld-elf/rtld.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rtld-elf/rtld.h b/libexec/rtld-elf/rtld.h
index 09d3dfc..9dfa0a2 100644
--- a/libexec/rtld-elf/rtld.h
+++ b/libexec/rtld-elf/rtld.h
@@ -313,6 +313,7 @@ typedef struct Struct_SymLook {
} SymLook;
extern void _rtld_error(const char *, ...) __printflike(1, 2);
+extern const char *rtld_strerror(int);
extern Obj_Entry *map_object(int, const char *, const struct stat *);
extern void *xcalloc(size_t);
extern void *xmalloc(size_t);
OpenPOWER on IntegriCloud