Fix phdrs2 test

This commit is contained in:
Nick Clifton 2002-06-07 10:30:56 +00:00
parent dbb4348d4a
commit 1634475f71
3 changed files with 18 additions and 11 deletions

View File

@ -1,3 +1,10 @@
2002-06-07 Nick Clifton <nickc@cambridge.redhat.com>
* ld-scripts/phdrs2.s: Use .p2align instead of .align.
Use section names .foo and .bar instead of .text and .data.
* ld-scripts/phdrs2.t: Refer to .foo and .bar instead of .text
and .data.
2002-06-06 David Heine <dlheine@tensilica.com>
* ld-scripts/phdrs2.exp: New file: Run second phdrs test.

View File

@ -1,7 +1,7 @@
.text
.align 4
.section .foo, "ax"
.p2align 2
.long 1
.data
.align 4
.section .bar, "aw"
.p2align 2
.long 2

View File

@ -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/ : { *(.*) }
}