]> Cypherpunks repositories - gostls13.git/commitdiff
5l: assume Linux binary, not Plan 9
authorRuss Cox <rsc@golang.org>
Mon, 18 Jul 2011 16:30:10 +0000 (12:30 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 18 Jul 2011 16:30:10 +0000 (12:30 -0400)
R=bradfitz
CC=golang-dev
https://golang.org/cl/4767042

src/cmd/5l/obj.c

index 93509054d46744b478e76e48ae61a4643d772235..fc5806aac5a03f76ec01f437a11f45df57b4e89e 100644 (file)
@@ -145,18 +145,8 @@ main(int argc, char *argv[])
 
        libinit();
 
-       if(!debug['9'] && !debug['U'] && !debug['B'])
-               debug[DEFAULT] = 1;
-       if(HEADTYPE == -1) {
-               if(debug['U'])
-                       HEADTYPE = Hnoheader;
-               else if(debug['B'])
-                       HEADTYPE = Hrisc;
-               else if(debug['9'])
-                       HEADTYPE = Hplan9x32;
-               else
-                       HEADTYPE = Hlinux;
-       }
+       if(HEADTYPE == -1)
+               HEADTYPE = Hlinux;
        switch(HEADTYPE) {
        default:
                diag("unknown -H option");