summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2015-01-01 19:08:07 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2015-01-01 13:34:49 -0600
commitd5eaaa724eabb4af4563cb9d77da711626d438ad (patch)
tree5576f823e36ece449e30072af188ec67d10ad379 /ldso
parent01881503631a691c0701434cfe6d70fd8e258534 (diff)
make __dl_start, whose address is taken, into a real object type
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/arm/dl-sysdep.h2
-rw-r--r--ldso/ldso/avr32/dl-sysdep.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h
index 94dc1d707..dc89710c6 100644
--- a/ldso/ldso/arm/dl-sysdep.h
+++ b/ldso/ldso/arm/dl-sysdep.h
@@ -105,7 +105,7 @@ elf_machine_dynamic (void)
return dynamic;
}
-extern void __dl_start __asm__ ("_dl_start");
+extern char __dl_start[] __asm__("_dl_start");
/* Return the run-time load address of the shared object. */
static __always_inline Elf32_Addr __attribute__ ((unused))
diff --git a/ldso/ldso/avr32/dl-sysdep.h b/ldso/ldso/avr32/dl-sysdep.h
index 515d829d0..a42212731 100644
--- a/ldso/ldso/avr32/dl-sysdep.h
+++ b/ldso/ldso/avr32/dl-sysdep.h
@@ -63,11 +63,12 @@ elf_machine_dynamic (void)
return *got;
}
+extern char __dl_start[] __asm__("_dl_start");
+
/* Return the run-time load address of the shared object. */
static __always_inline Elf32_Addr
elf_machine_load_address (void)
{
- extern void __dl_start __asm__("_dl_start");
Elf32_Addr got_addr = (Elf32_Addr) &__dl_start;
Elf32_Addr pcrel_addr;