Use __unused instead of __used for static data structures.

Remove compiler.h defines from osdep.h
This commit is contained in:
Michael Brown
2005-05-17 12:16:28 +00:00
parent 301b2d40f0
commit 3bbf5f28a3
7 changed files with 24 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ struct post_reloc_fn {
/* Macro for creating a post-relocation function table entry */
#define POST_RELOC_FN( order, post_reloc_func ) \
static struct post_reloc_fn PREFIX_OBJECT(post_reloc_fn__) \
__attribute__ (( used, __table_section(post_reloc_fn,order) )) = {\
__table ( post_reloc_fn, order ) = { \
.post_reloc = post_reloc_func, \
};