* ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.

* ld-elf/merge.s: New file.
	* ld-elf/merge.d: New file.
	* ld-elf/merge.ld: New file.
This commit is contained in:
Alan Modra 2002-11-21 13:30:31 +00:00
parent dc12c51f36
commit 782c0ebfc9
5 changed files with 55 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2002-11-21 Alan Modra <amodra@bigpond.net.au>
* ld-elf/elf.exp: Renamed from sec64k.exp. Add test_list loop.
* ld-elf/merge.s: New file.
* ld-elf/merge.d: New file.
* ld-elf/merge.ld: New file.
2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
* ld-scripts/script.exp: Setup for tic4x testcase

View File

@ -1,4 +1,4 @@
# Expect script for tests for >64k sections
# Expect script for various ELF tests.
# Copyright 2002 Free Software Foundation, Inc.
#
# This file is free software; you can redistribute it and/or modify
@ -32,15 +32,24 @@ if { [istarget *-*-linux*aout*] \
return
}
set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]]
foreach t $test_list {
# We need to strip the ".d", but can leave the dirname.
verbose [file rootname $t]
run_dump_test [file rootname $t]
}
# Test >64k sections, with and without -r.
# Per-port excludes, since this test takes an overwhelmingly long time
# currently.
if { ![istarget cris-*-*] } {
return
}
# Test >64k sections, with and without -r. First, create the assembly
# files. Have a relocation to another section and one within the local
# section.
# First, create the assembly files. Have a relocation to another
# section and one within the local section.
set test1 "64ksec-r"
set test2 "64ksec"

View File

@ -0,0 +1,14 @@
#source: merge.s
#ld: -T merge.ld
#objdump: -s
#xfail: "arc-*-*" "avr-*-*" "cris-*-*" "dlx-*-*" "fr30-*-*" "frv-*-*"
#xfail: "hppa*-*-*" "h8300-*-*" "i960-*-*" "ip2k-*-*" "m32r-*-*" "mcore-*-*"
#xfail: "mn10*-*-*" "openrisc-*-*" "pj-*-*" "sparc*-*-*"
.*: file format .*elf.*
Contents of section .text:
1000 (1010)?0000(1010)? (1210)?0000(1012)? (0c)?000000(0c)? (0e)?000000(0e)? .*
Contents of section .rodata:
1010 61626300 .*
#pass

View File

@ -0,0 +1,7 @@
SECTIONS
{
. = 0x1000;
.text : { *(.text .text.* .gnu.linkonce.t.*) }
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
.junk : { *(*) }
}

View File

@ -0,0 +1,14 @@
.section .rodata.str,"aMS","progbits",1
.LC0:
.asciz "abc"
.LC1:
.asciz "c"
.text
.global _start
_start:
.long .LC0
.LT0:
.long .LC1
.long .LC0-.LT0
.long .LC1-.LT0