From 24acea547572659fd2041803882411b68ff0d6eb Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Sat, 17 Sep 2005 17:06:59 +0000 Subject: Fix bug 430 and reduce ldso size with 1KB :). Not sure if I need to use fstat64, but I am sure someone will tell me. --- ldso/include/dl-hash.h | 3 +++ ldso/include/dl-syscall.h | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'ldso/include') diff --git a/ldso/include/dl-hash.h b/ldso/include/dl-hash.h index af6c2b93f..00b9c87f6 100644 --- a/ldso/include/dl-hash.h +++ b/ldso/include/dl-hash.h @@ -49,6 +49,9 @@ struct elf_resolve{ ElfW(Addr) relro_addr; size_t relro_size; + dev_t st_dev; /* device */ + ino_t st_ino; /* inode */ + #ifdef __powerpc__ /* this is used to store the address of relocation data words, so * we don't have to calculate it every time, which requires a divide */ diff --git a/ldso/include/dl-syscall.h b/ldso/include/dl-syscall.h index 3f20229cd..a1a2859c4 100644 --- a/ldso/include/dl-syscall.h +++ b/ldso/include/dl-syscall.h @@ -11,7 +11,9 @@ #define kernel_stat stat #include #include - +#define _SYSCALL_H +#include +#undef _SYSCALL_H /* _dl_open() parameters */ #define O_RDONLY 0x0000 @@ -82,6 +84,9 @@ static inline _syscall3(int, _dl_mprotect, const void *, addr, unsigned long, le #define __NR__dl_stat __NR_stat static inline _syscall2(int, _dl_stat, const char *, file_name, struct stat *, buf); +#define __NR__dl_fstat __NR_fstat +static inline _syscall2(int, _dl_fstat, int, fd, struct stat *, buf); + #define __NR__dl_munmap __NR_munmap static inline _syscall2(int, _dl_munmap, void *, start, unsigned long, length); -- cgit v1.2.3