aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-bpf/call-1.d1
-rw-r--r--ld/testsuite/ld-bpf/jump-1.d1
-rw-r--r--ld/testsuite/ld-srec/srec.exp4
-rw-r--r--ld/testsuite/ld-undefined/undefined.exp14
4 files changed, 15 insertions, 5 deletions
diff --git a/ld/testsuite/ld-bpf/call-1.d b/ld/testsuite/ld-bpf/call-1.d
index f408cd4..d44c14e 100644
--- a/ld/testsuite/ld-bpf/call-1.d
+++ b/ld/testsuite/ld-bpf/call-1.d
@@ -3,7 +3,6 @@
#source: bar.s
#objdump: -dr
#ld: -EL
-#warning: .*cannot find entry symbol _start.*
#name: CALL with disp32 reloc
.*: +file format .*bpf.*
diff --git a/ld/testsuite/ld-bpf/jump-1.d b/ld/testsuite/ld-bpf/jump-1.d
index b57bcf1..0e3de4e 100644
--- a/ld/testsuite/ld-bpf/jump-1.d
+++ b/ld/testsuite/ld-bpf/jump-1.d
@@ -3,7 +3,6 @@
#source: bar.s
#objdump: -dr
#ld: -EL
-#warning: .*cannot find entry symbol _start.*
#name: jump with disp16 reloc
.*: +file format .*bpf.*
diff --git a/ld/testsuite/ld-srec/srec.exp b/ld/testsuite/ld-srec/srec.exp
index 944e0a7..17d4bc4 100644
--- a/ld/testsuite/ld-srec/srec.exp
+++ b/ld/testsuite/ld-srec/srec.exp
@@ -428,6 +428,9 @@ setup_xfail "tile*-*-*"
# The S-record linker is not supported for C-SKY.
setup_xfail "csky*-*-*"
+# The S-record linker is not supported for eBPF.
+setup_xfail "bpf-*-*"
+
run_srec_test $test1 "tmpdir/sr1.o tmpdir/sr2.o"
# Now try linking a C++ program with global constructors and
@@ -464,6 +467,7 @@ setup_xfail "score-*-*"
setup_xfail "bfin-*-linux-uclibc"
setup_xfail "tile*-*-*"
setup_xfail "csky*-*-*"
+setup_xfail "bpf-*-*"
run_srec_test $test2 "tmpdir/sr3.o"
diff --git a/ld/testsuite/ld-undefined/undefined.exp b/ld/testsuite/ld-undefined/undefined.exp
index 8a8e865..958623f 100644
--- a/ld/testsuite/ld-undefined/undefined.exp
+++ b/ld/testsuite/ld-undefined/undefined.exp
@@ -40,9 +40,14 @@ if { ![check_compiler_available] } {
set flags [big_or_little_endian]
# Using -e start prevents the SunOS linker from trying to build a
- # shared library.
- send_log "$ld -e start $flags -o tmpdir/undefined tmpdir/undefined.o\n"
- set exec_output [run_host_cmd "$ld" "-e start $flags -o tmpdir/undefined tmpdir/undefined.o"]
+ # shared library. But don't use an entry point in BPF targets.
+ switch -glob $target_triplet {
+ bpf-*-* { set entry "" }
+ * { set entry "-e start" }
+ }
+
+ send_log "$ld $entry $flags -o tmpdir/undefined tmpdir/undefined.o\n"
+ set exec_output [run_host_cmd "$ld" "$entry $flags -o tmpdir/undefined tmpdir/undefined.o"]
send_log "$exec_output\n"
verbose "$exec_output"
@@ -142,6 +147,9 @@ if { ![check_compiler_available] } {
setup_xfail xtensa*-*-linux*
setup_xfail hppa*64*-*-*
+ # eBPF doesn't support dwarf yet.
+ setup_xfail bpf-*-*
+
checkund $ml $testline
}