From 7457767876645b543af84eeb091779610a715348 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 17 Apr 2018 09:48:05 +0000 Subject: [PATCH] debug/elf: enable TestNoSectionOverlaps on *bsd and solaris cmd/link produces ELF executables on all these geese, so enable TestNoSectionOverlaps for them as well. Also add a skip message. Change-Id: I374651dde3679271ef8c0c375c9cabd1adbca310 Reviewed-on: https://go-review.googlesource.com/107535 Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/debug/elf/file_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/debug/elf/file_test.go b/src/debug/elf/file_test.go index 58bdf277d3..ce27abb064 100644 --- a/src/debug/elf/file_test.go +++ b/src/debug/elf/file_test.go @@ -763,9 +763,10 @@ func TestCompressedSection(t *testing.T) { } func TestNoSectionOverlaps(t *testing.T) { - // Ensure 6l outputs sections without overlaps. - if runtime.GOOS != "linux" && runtime.GOOS != "freebsd" { - return // not ELF + // Ensure cmd/link outputs sections without overlaps. + switch runtime.GOOS { + case "android", "darwin", "nacl", "plan9", "windows": + t.Skipf("cmd/link doesn't produce ELF binaries on %s", runtime.GOOS) } _ = net.ResolveIPAddr // force dynamic linkage f, err := Open(os.Args[0]) -- 2.50.0