summaryrefslogtreecommitdiff
path: root/arm.ld
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-08-26 11:16:10 +0200
committerBlue Swirl <blauwirbel@gmail.com>2011-08-27 15:42:35 +0000
commit8733f6093c2b77502e7228503fc22024e51599b8 (patch)
treee3fad7accf16cdbfd25326fa8d3869e4e352ccb3 /arm.ld
parent0fc6b5828ff23d81aff6f48cb168bfe82548e1d7 (diff)
downloadqemu-8733f6093c2b77502e7228503fc22024e51599b8.tar.gz
qemu-8733f6093c2b77502e7228503fc22024e51599b8.tar.bz2
qemu-8733f6093c2b77502e7228503fc22024e51599b8.zip
Fix linker scripts
Remove PROVIDE_HIDDEN and ONLY_IF_{RO,RW} from linker scripts to make them work with older binutils versions. Fixes *-bsd-user build on OpenBSD 4.9 which ships binutils 2.15. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'arm.ld')
-rw-r--r--arm.ld12
1 files changed, 6 insertions, 6 deletions
diff --git a/arm.ld b/arm.ld
index 12b3edb5bb..7f13da9ebb 100644
--- a/arm.ld
+++ b/arm.ld
@@ -71,23 +71,23 @@ SECTIONS
.data1 : { *(.data1) }
.preinit_array :
{
- PROVIDE_HIDDEN (__preinit_array_start = .);
+ PROVIDE (__preinit_array_start = .);
KEEP (*(.preinit_array))
- PROVIDE_HIDDEN (__preinit_array_end = .);
+ PROVIDE (__preinit_array_end = .);
}
.init_array :
{
- PROVIDE_HIDDEN (__init_array_start = .);
+ PROVIDE (__init_array_start = .);
KEEP (*(SORT(.init_array.*)))
KEEP (*(.init_array))
- PROVIDE_HIDDEN (__init_array_end = .);
+ PROVIDE (__init_array_end = .);
}
.fini_array :
{
- PROVIDE_HIDDEN (__fini_array_start = .);
+ PROVIDE (__fini_array_start = .);
KEEP (*(.fini_array))
KEEP (*(SORT(.fini_array.*)))
- PROVIDE_HIDDEN (__fini_array_end = .);
+ PROVIDE (__fini_array_end = .);
}
.ctors :
{