Browse Source

Move extern prototype out of function scope

gcc-4.4 now barks about this, so appease it.

Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Ron 15 years ago
parent
commit
680ef7ed1f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ldso/ldso/arm/dl-sysdep.h

+ 2 - 1
ldso/ldso/arm/dl-sysdep.h

@@ -98,11 +98,12 @@ elf_machine_dynamic (void)
   return dynamic;
 }
 
+extern void __dl_start __asm__ ("_dl_start");
+
 /* Return the run-time load address of the shared object.  */
 static __always_inline Elf32_Addr __attribute__ ((unused))
 elf_machine_load_address (void)
 {
-	extern void __dl_start __asm__ ("_dl_start");
 	Elf32_Addr got_addr = (Elf32_Addr) &__dl_start;
 	Elf32_Addr pcrel_addr;
 #if defined __OPTIMIZE__ && !defined __thumb__