From 9b5281b65e2ce654610c0809aa829b4b18213b27 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 Aug 2012 11:03:47 -0700 Subject: Fix __dl_start declaration to avoid warning. --- ports/ChangeLog.arm | 5 +++++ ports/sysdeps/arm/dl-machine.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ports') diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm index 842bbea..2f1aa61 100644 --- a/ports/ChangeLog.arm +++ b/ports/ChangeLog.arm @@ -1,3 +1,8 @@ +2012-08-08 Roland McGrath + + * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use proper type + for __dl_start declaration. + 2012-08-07 Joseph Myers * sysdeps/unix/sysv/linux/arm/configure.in (arch_minimum_kernel): diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h index 442fc3d..fe39a5e 100644 --- a/ports/sysdeps/arm/dl-machine.h +++ b/ports/sysdeps/arm/dl-machine.h @@ -70,7 +70,7 @@ elf_machine_dynamic (void) static inline Elf32_Addr __attribute__ ((unused)) elf_machine_load_address (void) { - extern void __dl_start asm ("_dl_start"); + extern Elf32_Addr internal_function __dl_start (void *) asm ("_dl_start"); Elf32_Addr got_addr = (Elf32_Addr) &__dl_start; Elf32_Addr pcrel_addr; #ifdef __thumb__ -- cgit v1.1