mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 23:32:21 +08:00
2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10744 * ld-scripts/phdrs3.exp: Run phdrs3a. * ld-scripts/phdrs3a.d: New. * ld-scripts/phdrs3a.t: Likewise.
This commit is contained in:
@ -34,5 +34,6 @@ if { [istarget spu*-*-*] } {
|
||||
}
|
||||
|
||||
run_dump_test "phdrs3"
|
||||
run_dump_test "phdrs3a"
|
||||
|
||||
set LDFLAGS $old_ldflags
|
||||
|
9
ld/testsuite/ld-scripts/phdrs3a.d
Normal file
9
ld/testsuite/ld-scripts/phdrs3a.d
Normal file
@ -0,0 +1,9 @@
|
||||
#name: PHDRS headers 3a
|
||||
#source: phdrs.s
|
||||
#ld: -T phdrs3a.t
|
||||
#readelf: -l --wide
|
||||
|
||||
#...
|
||||
[ \t]+LOAD[ x0-9a-f]+ R [ x0-9a-f]+
|
||||
[ \t]+LOAD[ x0-9a-f]+ E [ x0-9a-f]+
|
||||
#pass
|
15
ld/testsuite/ld-scripts/phdrs3a.t
Normal file
15
ld/testsuite/ld-scripts/phdrs3a.t
Normal file
@ -0,0 +1,15 @@
|
||||
PHDRS
|
||||
{
|
||||
data PT_LOAD FILEHDR PHDRS FLAGS(4);
|
||||
text PT_LOAD FILEHDR PHDRS FLAGS(1);
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* This test will fail on architectures where the startaddress below
|
||||
is less than the constant MAXPAGESIZE. */
|
||||
. = 0x800000 + SIZEOF_HEADERS;
|
||||
.text : { *(.text) } :text
|
||||
.data : { *(.data) } :data
|
||||
/DISCARD/ : { *(.*) }
|
||||
}
|
Reference in New Issue
Block a user