diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-27 21:16:02 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-27 21:16:02 +0000 |
commit | 9f341620c14e959d333fb26d8ec5e9f9dc5209d6 (patch) | |
tree | fd0d6c0d0284c7dc37c27d2e4fac850176962e39 | |
parent | df90f2d6d61c97c7e548789967691c90e0fb00e4 (diff) |
use attribute_unused instead of hardcoded
-rw-r--r-- | ldso/include/dl-string.h | 2 | ||||
-rw-r--r-- | ldso/ldso/i386/dl-sysdep.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ldso/include/dl-string.h b/ldso/include/dl-string.h index b3fdb5b20..e2d4d36ed 100644 --- a/ldso/include/dl-string.h +++ b/ldso/include/dl-string.h @@ -8,7 +8,7 @@ #ifndef _LINUX_STRING_H_ #define _LINUX_STRING_H_ -#include <dl-sysdep.h> // for do_rem +#include <dl-sysdep.h> /* for do_rem */ #include <features.h> static size_t _dl_strlen(const char * str); diff --git a/ldso/ldso/i386/dl-sysdep.h b/ldso/ldso/i386/dl-sysdep.h index a1613bea4..2ef94c95f 100644 --- a/ldso/ldso/i386/dl-sysdep.h +++ b/ldso/ldso/i386/dl-sysdep.h @@ -44,7 +44,8 @@ extern unsigned long _dl_linux_resolver(struct elf_resolve * tpnt, int reloc_ent /* Return the link-time address of _DYNAMIC. Conveniently, this is the first element of the GOT. This must be inlined in a function which uses global data. */ -static inline Elf32_Addr __attribute__ ((unused)) +static inline Elf32_Addr elf_machine_dynamic (void) attribute_unused; +static inline Elf32_Addr elf_machine_dynamic (void) { register Elf32_Addr *got __asm__ ("%ebx"); @@ -53,7 +54,8 @@ elf_machine_dynamic (void) /* Return the run-time load address of the shared object. */ -static inline Elf32_Addr __attribute__ ((unused)) +static inline Elf32_Addr elf_machine_load_address (void) attribute_unused; +static inline Elf32_Addr elf_machine_load_address (void) { /* It doesn't matter what variable this is, the reference never makes |