]> Cypherpunks repositories - gostls13.git/commitdiff
nacl, tiny: remove vestiges
authorRobert Hencke <robert.hencke@gmail.com>
Tue, 21 Jun 2011 16:02:40 +0000 (12:02 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 21 Jun 2011 16:02:40 +0000 (12:02 -0400)
R=golang-dev, r, rsc
CC=golang-dev
https://golang.org/cl/4635053

misc/nacl/naclrun [deleted file]
src/cmd/8l/asm.c
src/cmd/8l/obj.c
src/cmd/ld/elf.h
src/cmd/ld/lib.h
src/pkg/runtime/mkasmh.sh
src/pkg/syscall/mksyscall.pl
test/run

diff --git a/misc/nacl/naclrun b/misc/nacl/naclrun
deleted file mode 100755 (executable)
index 1cdcf87..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# Copyright 2010 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.
-
-# Run nacl binary in debug mode (allow file access)
-# and then grep away the chatter.
-# See ../../src/pkg/exp/nacl/README for more on
-# how to configure NaCl.
-
-nacl -d "$@" >/tmp/nacl.out.$$ 2>&1
-status=$?
-egrep -v 'DEBUG MODE ENABLED|^\[[0-9]+,' /tmp/nacl.out.$$
-rm -f /tmp/nacl.out.$$
-exit $status
index cb900d28d01196fdae4ade74af1b5cf11d0e5bf1..aa44b07dbdfbf2be2bca2e57339cc84cd02fd05e 100644 (file)
@@ -920,10 +920,6 @@ asmb(void)
                break;
 
        Elfput:
-               /* elf 386 */
-               if(HEADTYPE == Htiny)
-                       debug['d'] = 1;
-
                eh = getElfEhdr();
                startva = INITTEXT - HEADR;
 
index 440dcb77f8154c791a66d9f07bba4771cdcb5547..7fd0dafaedb2a6270cceece30c8c74825afc06a7 100644 (file)
@@ -54,11 +54,9 @@ Header headers[] = {
    "msdosexe", Hmsdosexe,
    "darwin", Hdarwin,
    "linux", Hlinux,
-   "nacl", Hnacl,
    "freebsd", Hfreebsd,
    "windows", Hwindows,
    "windowsgui", Hwindows,
-   "tiny", Htiny,
    0, 0
 };
 
@@ -70,10 +68,8 @@ Header headers[] = {
  *     -Hmsdosexe -Tx -Rx                      is fake MS-DOS .EXE
  *     -Hdarwin -Tx -Rx                        is Apple Mach-O
  *     -Hlinux -Tx -Rx                         is Linux ELF32
- *     -Hnacl -Tx -Rx                          was Google Native Client
  *     -Hfreebsd -Tx -Rx                       is FreeBSD ELF32
  *     -Hwindows -Tx -Rx                       is MS Windows PE32
- *     -Htiny -Tx -Rx                          is tiny (os image)
  */
 
 void
@@ -254,17 +250,6 @@ main(int argc, char *argv[])
                if(INITRND == -1)
                        INITRND = PESECTALIGN;
                break;
-       case Htiny:
-               tlsoffset = 0;
-               elfinit();
-               HEADR = ELFRESERVE;
-               if(INITTEXT == -1)
-                       INITTEXT = 0x100000+HEADR;
-               if(INITDAT == -1)
-                       INITDAT = 0;
-               if(INITRND == -1)
-                       INITRND = 4096;
-               break;
        }
        if(INITDAT != 0 && INITRND != 0)
                print("warning: -D0x%ux is ignored because of -R0x%ux\n",
index 4db7a63d642f459b87ce6d89bfb07f65b90a3522..c63df22417f163bc28102af98d1be402f3a0e3a4 100644 (file)
@@ -110,7 +110,6 @@ typedef struct {
 #define ELFOSABI_OPENVMS       13      /* Open VMS */
 #define ELFOSABI_NSK           14      /* HP Non-Stop Kernel */
 #define ELFOSABI_ARM           97      /* ARM */
-#define ELFOSABI_NACL          123     /* Native Client */
 #define ELFOSABI_STANDALONE    255     /* Standalone (embedded) application */
 
 #define ELFOSABI_SYSV          ELFOSABI_NONE   /* symbol used in old spec */
index dfd18fbff9044330619804dc7d433ddd5aa5f1a0..4637131436c2d6f75c550fbabe78efc67ca6564d 100644 (file)
@@ -260,10 +260,8 @@ enum {
        Hipaq,          // ipaq
        Hdarwin,        // Apple Mach-O
        Hlinux,         // Linux ELF
-       Hnacl,          // Google Native Client
        Hfreebsd,       // FreeBSD ELF
        Hwindows,       // MS Windows PE
-       Htiny           // tiny (os image)
 };
 
 typedef struct Header Header;
index 91d1bbe5d8cdca505a3f8218963f09f5f6c4639b..00b5b3c89d15830a487559bde594e98afaee9544 100755 (executable)
@@ -14,7 +14,6 @@ EOF
 case "$GOARCH" in
 386)
        # The offsets 0 and 4 are also known to:
-       #       nacl/thread.c:/^newosproc
        #       ../../cmd/8l/pass.c:/D_GS
        #       ../../libcgo/linux_386.c:/^threadentry
        #       ../../libcgo/darwin_386.c:/^threadentry
index 9a474b6ff3105119e4daa811116fe7dd91ae66b4..ed6525972c2a82959cd427a7ef9be2a553bf0da8 100755 (executable)
@@ -24,7 +24,6 @@ use strict;
 my $cmdline = "mksyscall.pl " . join(' ', @ARGV);
 my $errors = 0;
 my $_32bit = "";
-my $nacl = 0;
 my $plan9 = 0;
 
 if($ARGV[0] eq "-b32") {
@@ -34,10 +33,6 @@ if($ARGV[0] eq "-b32") {
        $_32bit = "little-endian";
        shift;
 }
-if($ARGV[0] eq "-nacl") {
-       $nacl = 1;
-       shift;
-}
 if($ARGV[0] eq "-plan9") {
        $plan9 = 1;
        shift;
index 628cc2d7b418ddb468e6ccdbfe6b968b18fc5d09..bb6119836a282e80786b5c6512007db45f35d615 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -23,11 +23,6 @@ Xarm)
        exit 1
 esac
 
-case X"$GOOS" in
-Xnacl)
-       export E=${GORUN:-$GOROOT/misc/nacl/naclrun}
-esac
-
 export G=${A}g
 export L=${A}l
 export GOTRACEBACK=0
@@ -112,7 +107,6 @@ done | # clean up some stack noise
                /^Trace\/BPT trap/d
                /RUNFILE/ s/line 1: *[0-9]*/line 1: PID/
                /^\$RUNFILE: line 1: PID Trace\/breakpoint trap/d
-               /Fault in NaCl untrusted code/d
                /Segmentation fault/d
                /^qemu: uncaught target signal 11 (Segmentation fault) - exiting/d' > run.out