[git commit ldso-future] use __attribute_used__ instead of hardcoded __attribute__((used))

Peter S. Mazinger ps.m at gmx.net
Thu Apr 14 07:59:26 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=207261322ee0abca9e0d1ac2b9c40109fccf5268
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/ldso-future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 ldso/ldso/bfin/dl-startup.h          |    2 +-
 ldso/ldso/frv/dl-startup.h           |    2 +-
 libc/sysdeps/linux/arm/aeabi_lcsts.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ldso/ldso/bfin/dl-startup.h b/ldso/ldso/bfin/dl-startup.h
index 31b4726..9f9e4d6 100644
--- a/ldso/ldso/bfin/dl-startup.h
+++ b/ldso/ldso/bfin/dl-startup.h
@@ -86,7 +86,7 @@ __asm__(
 
 #undef DL_START
 #define DL_START(X)   \
-static void  __attribute__ ((used)) \
+static void  __attribute_used__ \
 _dl_start (Elf32_Addr dl_boot_got_pointer, \
 	   struct elf32_fdpic_loadmap *dl_boot_progmap, \
 	   struct elf32_fdpic_loadmap *dl_boot_ldsomap, \
diff --git a/ldso/ldso/frv/dl-startup.h b/ldso/ldso/frv/dl-startup.h
index 0c41cd6..82e75aa 100644
--- a/ldso/ldso/frv/dl-startup.h
+++ b/ldso/ldso/frv/dl-startup.h
@@ -65,7 +65,7 @@ __asm__("" \
 #define _dl_boot _dl_boot2
 #undef DL_START
 #define DL_START(X)   \
-static void  __attribute__ ((used)) \
+static void  __attribute_used__ \
 _dl_boot (void *dl_boot_got_pointer, \
 	  struct elf32_fdpic_loadmap *dl_boot_progmap, \
 	  struct elf32_fdpic_loadmap *dl_boot_ldsomap, \
diff --git a/libc/sysdeps/linux/arm/aeabi_lcsts.c b/libc/sysdeps/linux/arm/aeabi_lcsts.c
index 0c620d4..0bd2680 100644
--- a/libc/sysdeps/linux/arm/aeabi_lcsts.c
+++ b/libc/sysdeps/linux/arm/aeabi_lcsts.c
@@ -85,7 +85,7 @@ FILE *__aeabi_stdin attribute_hidden;
 FILE *__aeabi_stdout attribute_hidden;
 FILE *__aeabi_stderr attribute_hidden;
 
-static void __attribute__ ((used))
+static void __attribute_used__
 setup_aeabi_stdio (void)
 {
   __aeabi_stdin = stdin;
-- 
1.7.3.4



More information about the uClibc-cvs mailing list