From c38b9845081d90661870768d5ad004113d07c98b Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 24 Oct 2012 23:22:48 +0000 Subject: [PATCH] * ld-scripts/empty-aligned.d: Revert last change. Allow more than one header, just not two PT_LOAD. * ld-elf/stack.s: Use .long 0 rather than nops. --- ld/testsuite/ChangeLog | 6 ++++++ ld/testsuite/ld-elf/stack.s | 6 +----- ld/testsuite/ld-scripts/empty-aligned.d | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index d0a777c..0f99f97 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-10-25 Nathan Sidwell + + * ld-scripts/empty-aligned.d: Revert last change. Allow more + than one header, just not two PT_LOAD. + * ld-elf/stack.s: Use .long 0 rather than nops. + 2012-10-23 Nathan Sidwell * ld-elf/binutils.exp: Add -z stack-size=0. diff --git a/ld/testsuite/ld-elf/stack.s b/ld/testsuite/ld-elf/stack.s index b92617b..259e62c 100644 --- a/ld/testsuite/ld-elf/stack.s +++ b/ld/testsuite/ld-elf/stack.s @@ -3,8 +3,4 @@ .globl _start start: _start: - nop - nop - nop - nop - + .long 0 diff --git a/ld/testsuite/ld-scripts/empty-aligned.d b/ld/testsuite/ld-scripts/empty-aligned.d index 4a0c87c..d9916dd 100644 --- a/ld/testsuite/ld-scripts/empty-aligned.d +++ b/ld/testsuite/ld-scripts/empty-aligned.d @@ -1,5 +1,5 @@ #source: empty-aligned.s -#ld: -T empty-aligned.t -z stack-size=0 +#ld: -T empty-aligned.t #readelf: -l --wide #xfail: "hppa64-*-*" #notarget: frv-*-*linux* @@ -8,7 +8,7 @@ Program Headers: +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg +Align +LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ [RWE ]+ +0x[0-9a-f]+ - - Section to Segment mapping: +! +LOAD .* +#... +Segment Sections\.\.\. +00 +.text -- 2.7.4