aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-scripts
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-06-07 10:30:56 +0000
committerNick Clifton <nickc@redhat.com>2002-06-07 10:30:56 +0000
commit1634475f71a906cfbf0d1b182319869b42c16300 (patch)
tree7413958f3dfde44768b98296984eacd633026d85 /ld/testsuite/ld-scripts
parentdbb4348d4ac828d47e267f077b3ac1c5ad36affb (diff)
downloadfsf-binutils-gdb-1634475f71a906cfbf0d1b182319869b42c16300.zip
fsf-binutils-gdb-1634475f71a906cfbf0d1b182319869b42c16300.tar.gz
fsf-binutils-gdb-1634475f71a906cfbf0d1b182319869b42c16300.tar.bz2
Fix phdrs2 test
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.s8
-rw-r--r--ld/testsuite/ld-scripts/phdrs2.t14
2 files changed, 11 insertions, 11 deletions
diff --git a/ld/testsuite/ld-scripts/phdrs2.s b/ld/testsuite/ld-scripts/phdrs2.s
index 8092c18..1e29ddc 100644
--- a/ld/testsuite/ld-scripts/phdrs2.s
+++ b/ld/testsuite/ld-scripts/phdrs2.s
@@ -1,7 +1,7 @@
- .text
- .align 4
+ .section .foo, "ax"
+ .p2align 2
.long 1
- .data
- .align 4
+ .section .bar, "aw"
+ .p2align 2
.long 2
diff --git a/ld/testsuite/ld-scripts/phdrs2.t b/ld/testsuite/ld-scripts/phdrs2.t
index 0d32b39..bccbcec 100644
--- a/ld/testsuite/ld-scripts/phdrs2.t
+++ b/ld/testsuite/ld-scripts/phdrs2.t
@@ -1,23 +1,23 @@
PHDRS
{
- text PT_LOAD ;
- data PT_LOAD ;
+ Foo PT_LOAD ;
+ Bar PT_LOAD ;
}
SECTIONS
{
. = 0x800000 - 1;
- /* The PHDRS generated should start at the aligned .text section
+ /* The PHDRS generated should start at the aligned .foo section
address, not the unaligned .empty section address */
.empty : {
EMPTY_START = ABSOLUTE(.) ;
*(.empty)
EMPTY_END = ABSOLUTE(.) ;
- } : text
- .text : { *(.text) } :text
- .data : { *(.data)
+ } : Foo
+ .foo : { *(.foo) } : Foo
+ .bar : { *(.bar)
LONG(EMPTY_START) ;
- } :data
+ } : Bar
/DISCARD/ : { *(.*) }
}