From 036b8fd40b60830ca1d152f17148e52b96d8aa6c Mon Sep 17 00:00:00 2001 From: Chris Broadfoot Date: Wed, 27 Jan 2016 15:44:35 -0800 Subject: [release-branch.go1.6] cmd/newlink: remove from release branch Change-Id: Iec73b9a4279b5d6b458615c265e75b6becff320e Reviewed-on: https://go-review.googlesource.com/19023 Run-TryBot: Chris Broadfoot TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/newlink/testdata/dead.s | 48 ----------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 src/cmd/newlink/testdata/dead.s (limited to 'src/cmd/newlink/testdata/dead.s') diff --git a/src/cmd/newlink/testdata/dead.s b/src/cmd/newlink/testdata/dead.s deleted file mode 100644 index 86f31360fa..0000000000 --- a/src/cmd/newlink/testdata/dead.s +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2014 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Test of dead code removal. -// Symbols with names beginning with dead_ should be discarded. -// Others should be kept. - -TEXT start(SB),7,$0 // start symbol - MOVQ $data1<>(SB), AX - CALL text1(SB) - MOVQ $text2(SB), BX - RET - -TEXT text1(SB),7,$0 - FUNCDATA $1, funcdata+4(SB) - RET - -TEXT text2(SB),7,$0 - MOVQ $runtime·edata(SB),BX - RET - -DATA data1<>+0(SB)/8, $data2(SB) -DATA data1<>+8(SB)/8, $data3(SB) -GLOBL data1<>(SB), $16 -GLOBL data2(SB), $1 -GLOBL data3(SB), $1 -GLOBL funcdata(SB), $8 - -TEXT dead_start(SB),7,$0 - MOVQ $dead_data1(SB), AX - CALL dead_text1(SB) - MOVQ $dead_text2(SB), BX - RET - -TEXT dead_text1(SB),7,$0 - FUNCDATA $1, dead_funcdata+4(SB) - RET - -TEXT dead_text2(SB),7,$0 - RET - -DATA dead_data1+0(SB)/8, $dead_data2(SB) -DATA dead_data1+8(SB)/8, $dead_data3(SB) -GLOBL dead_data1(SB), $16 -GLOBL dead_data2(SB), $1 -GLOBL dead_data3(SB), $1 -GLOBL dead_funcdata(SB), $8 -- cgit v1.3