diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-14 03:54:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-07-14 03:54:52 +0000 |
commit | 83ed6b063588c235e6100ff1c9fad1fbe2a9fbcb (patch) | |
tree | 15efaf58fa61357182b1187ab4e16684f9fe3272 /libexec/ld.so/hppa | |
parent | 89ef96962f5e822c080a1c7b8b4bc51dea0916bc (diff) |
Now that we have sendsyslog(2), we can directly use it in the
(previously completely retarded) stack_smash_handler of ld.so
ok beck miod tedu
Diffstat (limited to 'libexec/ld.so/hppa')
-rw-r--r-- | libexec/ld.so/hppa/ldasm.S | 8 | ||||
-rw-r--r-- | libexec/ld.so/hppa/syscall.h | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/libexec/ld.so/hppa/ldasm.S b/libexec/ld.so/hppa/ldasm.S index 136b448e0f5..868ab87a1f0 100644 --- a/libexec/ld.so/hppa/ldasm.S +++ b/libexec/ld.so/hppa/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ +/* $OpenBSD: ldasm.S,v 1.15 2014/07/14 03:54:51 deraadt Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -272,6 +272,12 @@ ENTRY(_dl_getentropy,0) nop EXIT(_dl_getentropy) +ENTRY(_dl_sendsyslog,0) + SYSCALL(sendsyslog) + bv r0(rp) + nop +EXIT(_dl_sendsyslog) + ENTRY(_dl_sigprocmask,0) stw arg2, HPPA_FRAME_ARG(2)(sp) diff --git a/libexec/ld.so/hppa/syscall.h b/libexec/ld.so/hppa/syscall.h index 71967e1bea6..da985444cac 100644 --- a/libexec/ld.so/hppa/syscall.h +++ b/libexec/ld.so/hppa/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ +/* $OpenBSD: syscall.h,v 1.15 2014/07/14 03:54:51 deraadt Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -58,6 +58,7 @@ int _dl_lstat(const char *, struct stat *); int _dl_getcwd(char *, size_t); int _dl_utrace(const char *, const void *, size_t); int _dl_getentropy(char *, size_t); +int _dl_sendsyslog(const char *, size_t); static inline off_t _dl_lseek(int fildes, off_t offset, int whence) |