From 6b585b735fdaa469b785a5e0bc520dc71ee93d20 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 27 Jun 2012 01:18:09 +0000 Subject: [PATCH] * ld-elf/ehdr_start.s: Use data rather than rodata. * ld-elf/ehdr_start.d: Run on linux and gnu targets only. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/ld-elf/ehdr_start.d | 2 +- ld/testsuite/ld-elf/ehdr_start.s | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6e27e5191b4..c41bf21bc28 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-06-27 Alan Modra + + * ld-elf/ehdr_start.s: Use data rather than rodata. + * ld-elf/ehdr_start.d: Run on linux and gnu targets only. + 2012-06-25 Roland McGrath * ld-elf/ehdr_start.d (ld): Add explicit -e _start. diff --git a/ld/testsuite/ld-elf/ehdr_start.d b/ld/testsuite/ld-elf/ehdr_start.d index 05c6a079bae..a8dbee97a0f 100644 --- a/ld/testsuite/ld-elf/ehdr_start.d +++ b/ld/testsuite/ld-elf/ehdr_start.d @@ -1,7 +1,7 @@ #source: ehdr_start.s #ld: -e _start #nm: -n -#notarget: arm*-*-eabi* cris-*-* +#target: *-*-linux* *-*-gnu* #... [0-9a-f]*000 [ADRT] __ehdr_start diff --git a/ld/testsuite/ld-elf/ehdr_start.s b/ld/testsuite/ld-elf/ehdr_start.s index ab029dc19d2..529d51010d5 100644 --- a/ld/testsuite/ld-elf/ehdr_start.s +++ b/ld/testsuite/ld-elf/ehdr_start.s @@ -3,7 +3,7 @@ _start: .space 16 - .section .rodata,"a",%progbits + .data .globl foo foo: .weak __ehdr_start -- 2.30.2