Browse Source

Plan 9 from Bell Labs 2006-03-26

David du Colombier 15 years ago
parent
commit
382c3074c3

+ 43 - 41
dist/replica/_plan9.db

@@ -15,7 +15,7 @@
 386/_9pcdisk.gz - 664 sys sys 1039764191 695837
 386/bin - 20000000775 sys sys 1018897690 0
 386/bin/8a - 775 sys sys 1135570766 116009
-386/bin/8c - 775 sys sys 1143222265 363073
+386/bin/8c - 775 sys sys 1143309591 363861
 386/bin/8l - 775 sys sys 1140553397 115719
 386/bin/9660srv - 775 sys sys 1135570766 104023
 386/bin/aan - 775 sys sys 1138500151 131061
@@ -216,7 +216,7 @@
 386/bin/disk/mksacfs - 775 sys sys 1020319074 71451
 386/bin/disk/prep - 775 sys sys 1135570806 95873
 386/bin/disk/sacfs - 775 sys sys 1020319075 79882
-386/bin/dossrv - 775 sys sys 1135570806 137741
+386/bin/dossrv - 775 sys sys 1143309591 137759
 386/bin/du - 775 sys sys 1135570806 73708
 386/bin/echo - 775 sys sys 1135570806 57349
 386/bin/ed - 775 sys sys 1135570807 93021
@@ -530,46 +530,46 @@
 386/lib - 20000000775 sys sys 1016826328 0
 386/lib/ape - 20000000775 sys sys 944969312 0
 386/lib/ape/lib9.a - 664 sys sys 1135531447 6906
-386/lib/ape/libap.a - 664 sys sys 1143137027 816198
-386/lib/ape/libbsd.a - 664 sys sys 1138500827 183176
+386/lib/ape/libap.a - 664 sys sys 1143309593 816080
+386/lib/ape/libbsd.a - 664 sys sys 1143309593 183044
 386/lib/ape/libdraw.a - 664 sys sys 1142871046 580970
-386/lib/ape/libfmt.a - 664 sys sys 1138500850 150976
+386/lib/ape/libfmt.a - 664 sys sys 1143309594 150938
 386/lib/ape/libl.a - 664 sys sys 1122001337 9420
 386/lib/ape/libnet.a - 664 sys sys 1138500858 16950
-386/lib/ape/libregexp.a - 664 sys sys 1137468669 47670
+386/lib/ape/libregexp.a - 664 sys sys 1143309594 47656
 386/lib/ape/libutf.a - 664 sys sys 1137485201 84674
 386/lib/ape/libv.a - 664 sys sys 1137485201 19668
-386/lib/lib9p.a - 664 sys sys 1143137027 91156
+386/lib/lib9p.a - 664 sys sys 1143309595 91144
 386/lib/libString.a - 664 sys sys 1143137027 22184
-386/lib/libauth.a - 664 sys sys 1143137027 58638
-386/lib/libauthsrv.a - 664 sys sys 1143137027 34210
+386/lib/libauth.a - 664 sys sys 1143309595 58624
+386/lib/libauthsrv.a - 664 sys sys 1143309595 34196
 386/lib/libbin.a - 664 sys sys 1143137027 2534
-386/lib/libbio.a - 664 sys sys 1143137027 26064
-386/lib/libc.a - 664 sys sys 1143137029 503186
+386/lib/libbio.a - 664 sys sys 1143309595 26040
+386/lib/libc.a - 664 sys sys 1143309596 503124
 386/lib/libcomplete.a - 664 sys sys 1143137029 6372
-386/lib/libcontrol.a - 664 sys sys 1143137030 274924
-386/lib/libdisk.a - 664 sys sys 1143137030 42414
+386/lib/libcontrol.a - 664 sys sys 1143309597 274912
+386/lib/libdisk.a - 664 sys sys 1143309597 42402
 386/lib/libdraw.a - 664 sys sys 1143137032 374212
-386/lib/libflate.a - 664 sys sys 1143137032 76832
+386/lib/libflate.a - 664 sys sys 1143309597 76818
 386/lib/libframe.a - 664 sys sys 1143137032 66118
 386/lib/libgeometry.a - 664 sys sys 1143137033 50470
 386/lib/libhtml.a - 664 sys sys 1143230650 229608
-386/lib/libhttpd.a - 664 sys sys 1143137034 99586
-386/lib/libip.a - 664 sys sys 1143137034 35602
+386/lib/libhttpd.a - 664 sys sys 1143309598 99554
+386/lib/libip.a - 664 sys sys 1143309598 35590
 386/lib/libl.a - 664 sys sys 1143137034 5384
-386/lib/libmach.a - 664 sys sys 1143137036 782466
+386/lib/libmach.a - 664 sys sys 1143309600 782134
 386/lib/libmemdraw.a - 664 sys sys 1143137037 284158
 386/lib/libmemlayer.a - 664 sys sys 1143137037 47360
 386/lib/libmp.a - 664 sys sys 1143137037 80024
 386/lib/libndb.a - 664 sys sys 1143137038 60716
 386/lib/libplumb.a - 664 sys sys 1143137038 19408
-386/lib/libregexp.a - 664 sys sys 1143137038 37464
-386/lib/libscribble.a - 664 sys sys 1143137038 107278
-386/lib/libsec.a - 664 sys sys 1143137040 646938
-386/lib/libstdio.a - 664 sys sys 1143137040 126186
-386/lib/libsunrpc.a - 664 sys sys 1143137041 355994
-386/lib/libthread.a - 664 sys sys 1143137041 71986
-386/lib/libventi.a - 664 sys sys 1143137042 98038
+386/lib/libregexp.a - 664 sys sys 1143309600 37450
+386/lib/libscribble.a - 664 sys sys 1143309600 107266
+386/lib/libsec.a - 664 sys sys 1143309601 646928
+386/lib/libstdio.a - 664 sys sys 1143309602 126110
+386/lib/libsunrpc.a - 664 sys sys 1143309603 355930
+386/lib/libthread.a - 664 sys sys 1143309603 71946
+386/lib/libventi.a - 664 sys sys 1143309603 97998
 386/mbr - 775 sys sys 1131317338 407
 386/mkfile - 664 sys sys 948141303 46
 386/pbs - 775 sys sys 1131317339 494
@@ -5390,6 +5390,9 @@ power/lib/ape - 20000000775 sys sys 947992106 0
 power/mkfile - 664 sys sys 948141304 46
 rc - 20000000775 sys sys 944959447 0
 rc/bin - 20000000775 sys sys 1018637942 0
+rc/bin/0a - 775 sys sys 1143293821 24
+rc/bin/0c - 775 sys sys 1143290256 24
+rc/bin/0l - 775 sys sys 1143293821 24
 rc/bin/9fat: - 775 sys sys 1133179689 367
 rc/bin/9fs - 775 sys sys 1139499615 971
 rc/bin/B - 775 sys sys 945617206 645
@@ -7241,9 +7244,9 @@ sys/log/timesync.d - 20000000775 sys sys 947099701 0
 sys/man - 20000000775 sys sys 1012278794 0
 sys/man/1 - 20000000775 sys sys 1018897631 0
 sys/man/1/0intro - 664 sys sys 1101668050 9625
-sys/man/1/2a - 664 sys sys 1101668050 1188
-sys/man/1/2c - 664 sys sys 1109303821 8237
-sys/man/1/2l - 664 sys sys 1139673910 4368
+sys/man/1/2a - 664 sys sys 1143293894 1192
+sys/man/1/2c - 664 sys sys 1143293856 8288
+sys/man/1/2l - 664 sys sys 1143293894 4372
 sys/man/1/INDEX - 664 sys sys 1141357442 3040
 sys/man/1/INDEX.html - 664 sys sys 1141352366 16517
 sys/man/1/acid - 664 sys sys 1134233059 9730
@@ -8136,7 +8139,7 @@ sys/src/9/port/segment.c - 664 sys sys 1143129964 13992
 sys/src/9/port/semaphore.p - 664 sys sys 1143129797 2424
 sys/src/9/port/swap.c - 664 sys sys 1138028310 7019
 sys/src/9/port/sysfile.c - 664 sys sys 1141940070 22192
-sys/src/9/port/sysproc.c - 664 sys sys 1143129796 21535
+sys/src/9/port/sysproc.c - 664 sys sys 1143289632 21534
 sys/src/9/port/taslock.c - 664 sys sys 1142957865 3928
 sys/src/9/port/thwack.c - 664 sys sys 1057323394 7253
 sys/src/9/port/thwack.h - 664 sys sys 1015278340 1792
@@ -9219,7 +9222,7 @@ sys/src/cmd/8a/l.s - 664 sys sys 944960730 12551
 sys/src/cmd/8a/lex.c - 664 sys sys 1089299184 18202
 sys/src/cmd/8a/mkfile - 664 sys sys 1032101905 277
 sys/src/cmd/8c - 20000000775 sys sys 945035118 0
-sys/src/cmd/8c/8.out.h - 664 sys sys 1089299180 4119
+sys/src/cmd/8c/8.out.h - 664 sys sys 1143289023 4120
 sys/src/cmd/8c/bound.c - 664 sys sys 1084472146 16274
 sys/src/cmd/8c/bound.h - 664 sys sys 1084472146 903
 sys/src/cmd/8c/cgen.c - 664 sys sys 1143241858 32123
@@ -9820,7 +9823,7 @@ sys/src/cmd/cc - 20000000775 sys sys 1018556175 0
 sys/src/cmd/cc/acid.c - 664 sys sys 944960808 5314
 sys/src/cmd/cc/bits.c - 664 sys sys 944960873 850
 sys/src/cmd/cc/c99 - 664 sys sys 1141313718 1302
-sys/src/cmd/cc/cc.h - 664 sys sys 1143240307 12170
+sys/src/cmd/cc/cc.h - 664 sys sys 1143290259 12189
 sys/src/cmd/cc/cc.y - 664 sys sys 1143220759 16160
 sys/src/cmd/cc/com.c - 664 sys sys 1134321739 22202
 sys/src/cmd/cc/com64.c - 664 sys sys 1143240308 10001
@@ -9829,11 +9832,10 @@ sys/src/cmd/cc/compat.c - 664 sys sys 1132451523 454
 sys/src/cmd/cc/dcl.c - 664 sys sys 1142726518 27014
 sys/src/cmd/cc/dpchk.c - 664 sys sys 1107365037 7152
 sys/src/cmd/cc/funct.c - 664 sys sys 984718510 6167
-sys/src/cmd/cc/lex.c - 664 sys sys 1141250058 23973
+sys/src/cmd/cc/lex.c - 664 sys sys 1143290259 24192
 sys/src/cmd/cc/lexbody - 664 sys sys 1131293457 9188
 sys/src/cmd/cc/mac.c - 664 sys sys 944960808 36
 sys/src/cmd/cc/macbody - 664 sys sys 1108281581 11703
-sys/src/cmd/cc/machcap.c - 664 sys sys 1084472048 78
 sys/src/cmd/cc/mkfile - 664 sys sys 1143240308 564
 sys/src/cmd/cc/omachcap.c - 664 sys sys 1143241829 78
 sys/src/cmd/cc/pgen.c - 664 sys sys 1143240307 6826
@@ -10042,7 +10044,7 @@ sys/src/cmd/dossrv/dat.h - 664 sys sys 1017679316 5376
 sys/src/cmd/dossrv/devio.c - 664 sys sys 1017679315 1122
 sys/src/cmd/dossrv/dosfs.c - 664 sys sys 1032057271 17030
 sys/src/cmd/dossrv/dosfs.h - 664 sys sys 1014925385 160
-sys/src/cmd/dossrv/dossubs.c - 664 sys sys 1045505070 37735
+sys/src/cmd/dossrv/dossubs.c - 664 sys sys 1143289669 37706
 sys/src/cmd/dossrv/errstr.h - 664 sys sys 1014925385 544
 sys/src/cmd/dossrv/fns.h - 664 sys sys 1014925385 1989
 sys/src/cmd/dossrv/iotrack.c - 664 sys sys 1014925385 5153
@@ -12634,7 +12636,7 @@ sys/src/cmd/ndb/dblookup.c - 664 sys sys 1123602793 18275
 sys/src/cmd/ndb/dn.c - 664 sys sys 1127392642 27986
 sys/src/cmd/ndb/dnarea.c - 664 sys sys 1121977162 2128
 sys/src/cmd/ndb/dnnotify.c - 664 sys sys 1055701929 3062
-sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1079747687 15363
+sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1143289655 15331
 sys/src/cmd/ndb/dns.c - 664 sys sys 1134305452 15248
 sys/src/cmd/ndb/dns.h - 664 sys sys 1135487937 10143
 sys/src/cmd/ndb/dnsdebug.c - 664 sys sys 1079747685 8488
@@ -13288,7 +13290,7 @@ sys/src/cmd/ssh/ciphertwiddle.c - 664 sys sys 1016466379 380
 sys/src/cmd/ssh/cmsg.c - 664 sys sys 1133814916 7906
 sys/src/cmd/ssh/mkfile - 664 sys sys 1048179592 1045
 sys/src/cmd/ssh/msg.c - 664 sys sys 1092516579 8102
-sys/src/cmd/ssh/pubkey.c - 664 sys sys 1019928902 3974
+sys/src/cmd/ssh/pubkey.c - 664 sys sys 1143289680 3951
 sys/src/cmd/ssh/scp.c - 664 sys sys 1094156297 13889
 sys/src/cmd/ssh/smsg.c - 664 sys sys 1092516575 6374
 sys/src/cmd/ssh/ssh.c - 664 sys sys 1133821217 9671
@@ -13870,7 +13872,7 @@ sys/src/cmd/unix/drawterm/win32-386/md5block.spp - 664 sys sys 1135900544 6591
 sys/src/cmd/unix/drawterm/win32-386/sha1block.spp - 664 sys sys 1135900544 4912
 sys/src/cmd/unix/drawterm/win32-386/tas.c - 664 sys sys 1135900544 270
 sys/src/cmd/unix/drawterm/win32-factotum.c - 664 sys sys 1135900536 238
-sys/src/cmd/unix/netkey.c - 664 sys sys 1045152984 21761
+sys/src/cmd/unix/netkey.c - 664 sys sys 1143289644 21732
 sys/src/cmd/unix/u9fs - 20000000775 sys sys 1015092354 0
 sys/src/cmd/unix/u9fs/LICENSE - 664 sys sys 1132498433 735
 sys/src/cmd/unix/u9fs/authnone.c - 664 sys sys 1015092351 321
@@ -14075,7 +14077,7 @@ sys/src/cmd/va - 20000000775 sys sys 954038374 0
 sys/src/cmd/va/a.h - 664 sys sys 1089299166 2915
 sys/src/cmd/va/a.y - 664 sys sys 944961340 7211
 sys/src/cmd/va/l.s - 664 sys sys 944961340 12696
-sys/src/cmd/va/lex.c - 664 sys sys 1089299166 12004
+sys/src/cmd/va/lex.c - 664 sys sys 1143293804 12095
 sys/src/cmd/va/mkfile - 664 sys sys 944961340 215
 sys/src/cmd/vac - 20000000775 sys sys 1019678788 0
 sys/src/cmd/vac/cache.c - 664 sys sys 1071245791 15806
@@ -14110,7 +14112,7 @@ sys/src/cmd/vc/mul.c - 664 sys sys 944961340 9189
 sys/src/cmd/vc/peep.c - 664 sys sys 1089299165 10302
 sys/src/cmd/vc/reg.c - 664 sys sys 1089299166 19378
 sys/src/cmd/vc/sgen.c - 664 sys sys 1143241861 3139
-sys/src/cmd/vc/swt.c - 664 sys sys 1143241862 11294
+sys/src/cmd/vc/swt.c - 664 sys sys 1143290259 11310
 sys/src/cmd/vc/txt.c - 664 sys sys 1089299165 22720
 sys/src/cmd/vc/v.out.h - 664 sys sys 1089299165 2630
 sys/src/cmd/venti - 20000000775 sys sys 947360466 0
@@ -14191,13 +14193,13 @@ sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744
 sys/src/cmd/vi/syscall.c - 664 sys sys 1124229128 14183
 sys/src/cmd/vi/vi.c - 664 sys sys 1124229128 8989
 sys/src/cmd/vl - 20000000775 sys sys 944961343 0
-sys/src/cmd/vl/asm.c - 664 sys sys 1055699754 30723
+sys/src/cmd/vl/asm.c - 664 sys sys 1143293749 31296
 sys/src/cmd/vl/compat.c - 664 sys sys 944961343 445
-sys/src/cmd/vl/l.h - 664 sys sys 1089299164 5422
+sys/src/cmd/vl/l.h - 664 sys sys 1143293748 5458
 sys/src/cmd/vl/list.c - 664 sys sys 1055699765 4753
 sys/src/cmd/vl/mkfile - 664 sys sys 944961342 372
 sys/src/cmd/vl/noop.c - 664 sys sys 944961342 7349
-sys/src/cmd/vl/obj.c - 664 sys sys 1089299164 23039
+sys/src/cmd/vl/obj.c - 664 sys sys 1143293748 23718
 sys/src/cmd/vl/optab.c - 664 sys sys 944961342 8973
 sys/src/cmd/vl/pass.c - 664 sys sys 1132449538 8706
 sys/src/cmd/vl/sched.c - 664 sys sys 1014936060 11363

+ 43 - 41
dist/replica/plan9.db

@@ -15,7 +15,7 @@
 386/_9pcdisk.gz - 664 sys sys 1039764191 695837
 386/bin - 20000000775 sys sys 1018897690 0
 386/bin/8a - 775 sys sys 1135570766 116009
-386/bin/8c - 775 sys sys 1143222265 363073
+386/bin/8c - 775 sys sys 1143309591 363861
 386/bin/8l - 775 sys sys 1140553397 115719
 386/bin/9660srv - 775 sys sys 1135570766 104023
 386/bin/aan - 775 sys sys 1138500151 131061
@@ -216,7 +216,7 @@
 386/bin/disk/mksacfs - 775 sys sys 1020319074 71451
 386/bin/disk/prep - 775 sys sys 1135570806 95873
 386/bin/disk/sacfs - 775 sys sys 1020319075 79882
-386/bin/dossrv - 775 sys sys 1135570806 137741
+386/bin/dossrv - 775 sys sys 1143309591 137759
 386/bin/du - 775 sys sys 1135570806 73708
 386/bin/echo - 775 sys sys 1135570806 57349
 386/bin/ed - 775 sys sys 1135570807 93021
@@ -530,46 +530,46 @@
 386/lib - 20000000775 sys sys 1016826328 0
 386/lib/ape - 20000000775 sys sys 944969312 0
 386/lib/ape/lib9.a - 664 sys sys 1135531447 6906
-386/lib/ape/libap.a - 664 sys sys 1143137027 816198
-386/lib/ape/libbsd.a - 664 sys sys 1138500827 183176
+386/lib/ape/libap.a - 664 sys sys 1143309593 816080
+386/lib/ape/libbsd.a - 664 sys sys 1143309593 183044
 386/lib/ape/libdraw.a - 664 sys sys 1142871046 580970
-386/lib/ape/libfmt.a - 664 sys sys 1138500850 150976
+386/lib/ape/libfmt.a - 664 sys sys 1143309594 150938
 386/lib/ape/libl.a - 664 sys sys 1122001337 9420
 386/lib/ape/libnet.a - 664 sys sys 1138500858 16950
-386/lib/ape/libregexp.a - 664 sys sys 1137468669 47670
+386/lib/ape/libregexp.a - 664 sys sys 1143309594 47656
 386/lib/ape/libutf.a - 664 sys sys 1137485201 84674
 386/lib/ape/libv.a - 664 sys sys 1137485201 19668
-386/lib/lib9p.a - 664 sys sys 1143137027 91156
+386/lib/lib9p.a - 664 sys sys 1143309595 91144
 386/lib/libString.a - 664 sys sys 1143137027 22184
-386/lib/libauth.a - 664 sys sys 1143137027 58638
-386/lib/libauthsrv.a - 664 sys sys 1143137027 34210
+386/lib/libauth.a - 664 sys sys 1143309595 58624
+386/lib/libauthsrv.a - 664 sys sys 1143309595 34196
 386/lib/libbin.a - 664 sys sys 1143137027 2534
-386/lib/libbio.a - 664 sys sys 1143137027 26064
-386/lib/libc.a - 664 sys sys 1143137029 503186
+386/lib/libbio.a - 664 sys sys 1143309595 26040
+386/lib/libc.a - 664 sys sys 1143309596 503124
 386/lib/libcomplete.a - 664 sys sys 1143137029 6372
-386/lib/libcontrol.a - 664 sys sys 1143137030 274924
-386/lib/libdisk.a - 664 sys sys 1143137030 42414
+386/lib/libcontrol.a - 664 sys sys 1143309597 274912
+386/lib/libdisk.a - 664 sys sys 1143309597 42402
 386/lib/libdraw.a - 664 sys sys 1143137032 374212
-386/lib/libflate.a - 664 sys sys 1143137032 76832
+386/lib/libflate.a - 664 sys sys 1143309597 76818
 386/lib/libframe.a - 664 sys sys 1143137032 66118
 386/lib/libgeometry.a - 664 sys sys 1143137033 50470
 386/lib/libhtml.a - 664 sys sys 1143230650 229608
-386/lib/libhttpd.a - 664 sys sys 1143137034 99586
-386/lib/libip.a - 664 sys sys 1143137034 35602
+386/lib/libhttpd.a - 664 sys sys 1143309598 99554
+386/lib/libip.a - 664 sys sys 1143309598 35590
 386/lib/libl.a - 664 sys sys 1143137034 5384
-386/lib/libmach.a - 664 sys sys 1143137036 782466
+386/lib/libmach.a - 664 sys sys 1143309600 782134
 386/lib/libmemdraw.a - 664 sys sys 1143137037 284158
 386/lib/libmemlayer.a - 664 sys sys 1143137037 47360
 386/lib/libmp.a - 664 sys sys 1143137037 80024
 386/lib/libndb.a - 664 sys sys 1143137038 60716
 386/lib/libplumb.a - 664 sys sys 1143137038 19408
-386/lib/libregexp.a - 664 sys sys 1143137038 37464
-386/lib/libscribble.a - 664 sys sys 1143137038 107278
-386/lib/libsec.a - 664 sys sys 1143137040 646938
-386/lib/libstdio.a - 664 sys sys 1143137040 126186
-386/lib/libsunrpc.a - 664 sys sys 1143137041 355994
-386/lib/libthread.a - 664 sys sys 1143137041 71986
-386/lib/libventi.a - 664 sys sys 1143137042 98038
+386/lib/libregexp.a - 664 sys sys 1143309600 37450
+386/lib/libscribble.a - 664 sys sys 1143309600 107266
+386/lib/libsec.a - 664 sys sys 1143309601 646928
+386/lib/libstdio.a - 664 sys sys 1143309602 126110
+386/lib/libsunrpc.a - 664 sys sys 1143309603 355930
+386/lib/libthread.a - 664 sys sys 1143309603 71946
+386/lib/libventi.a - 664 sys sys 1143309603 97998
 386/mbr - 775 sys sys 1131317338 407
 386/mkfile - 664 sys sys 948141303 46
 386/pbs - 775 sys sys 1131317339 494
@@ -5390,6 +5390,9 @@ power/lib/ape - 20000000775 sys sys 947992106 0
 power/mkfile - 664 sys sys 948141304 46
 rc - 20000000775 sys sys 944959447 0
 rc/bin - 20000000775 sys sys 1018637942 0
+rc/bin/0a - 775 sys sys 1143293821 24
+rc/bin/0c - 775 sys sys 1143290256 24
+rc/bin/0l - 775 sys sys 1143293821 24
 rc/bin/9fat: - 775 sys sys 1133179689 367
 rc/bin/9fs - 775 sys sys 1139499615 971
 rc/bin/B - 775 sys sys 945617206 645
@@ -7241,9 +7244,9 @@ sys/log/timesync.d - 20000000775 sys sys 947099701 0
 sys/man - 20000000775 sys sys 1012278794 0
 sys/man/1 - 20000000775 sys sys 1018897631 0
 sys/man/1/0intro - 664 sys sys 1101668050 9625
-sys/man/1/2a - 664 sys sys 1101668050 1188
-sys/man/1/2c - 664 sys sys 1109303821 8237
-sys/man/1/2l - 664 sys sys 1139673910 4368
+sys/man/1/2a - 664 sys sys 1143293894 1192
+sys/man/1/2c - 664 sys sys 1143293856 8288
+sys/man/1/2l - 664 sys sys 1143293894 4372
 sys/man/1/INDEX - 664 sys sys 1141357442 3040
 sys/man/1/INDEX.html - 664 sys sys 1141352366 16517
 sys/man/1/acid - 664 sys sys 1134233059 9730
@@ -8136,7 +8139,7 @@ sys/src/9/port/segment.c - 664 sys sys 1143129964 13992
 sys/src/9/port/semaphore.p - 664 sys sys 1143129797 2424
 sys/src/9/port/swap.c - 664 sys sys 1138028310 7019
 sys/src/9/port/sysfile.c - 664 sys sys 1141940070 22192
-sys/src/9/port/sysproc.c - 664 sys sys 1143129796 21535
+sys/src/9/port/sysproc.c - 664 sys sys 1143289632 21534
 sys/src/9/port/taslock.c - 664 sys sys 1142957865 3928
 sys/src/9/port/thwack.c - 664 sys sys 1057323394 7253
 sys/src/9/port/thwack.h - 664 sys sys 1015278340 1792
@@ -9219,7 +9222,7 @@ sys/src/cmd/8a/l.s - 664 sys sys 944960730 12551
 sys/src/cmd/8a/lex.c - 664 sys sys 1089299184 18202
 sys/src/cmd/8a/mkfile - 664 sys sys 1032101905 277
 sys/src/cmd/8c - 20000000775 sys sys 945035118 0
-sys/src/cmd/8c/8.out.h - 664 sys sys 1089299180 4119
+sys/src/cmd/8c/8.out.h - 664 sys sys 1143289023 4120
 sys/src/cmd/8c/bound.c - 664 sys sys 1084472146 16274
 sys/src/cmd/8c/bound.h - 664 sys sys 1084472146 903
 sys/src/cmd/8c/cgen.c - 664 sys sys 1143241858 32123
@@ -9820,7 +9823,7 @@ sys/src/cmd/cc - 20000000775 sys sys 1018556175 0
 sys/src/cmd/cc/acid.c - 664 sys sys 944960808 5314
 sys/src/cmd/cc/bits.c - 664 sys sys 944960873 850
 sys/src/cmd/cc/c99 - 664 sys sys 1141313718 1302
-sys/src/cmd/cc/cc.h - 664 sys sys 1143240307 12170
+sys/src/cmd/cc/cc.h - 664 sys sys 1143290259 12189
 sys/src/cmd/cc/cc.y - 664 sys sys 1143220759 16160
 sys/src/cmd/cc/com.c - 664 sys sys 1134321739 22202
 sys/src/cmd/cc/com64.c - 664 sys sys 1143240308 10001
@@ -9829,11 +9832,10 @@ sys/src/cmd/cc/compat.c - 664 sys sys 1132451523 454
 sys/src/cmd/cc/dcl.c - 664 sys sys 1142726518 27014
 sys/src/cmd/cc/dpchk.c - 664 sys sys 1107365037 7152
 sys/src/cmd/cc/funct.c - 664 sys sys 984718510 6167
-sys/src/cmd/cc/lex.c - 664 sys sys 1141250058 23973
+sys/src/cmd/cc/lex.c - 664 sys sys 1143290259 24192
 sys/src/cmd/cc/lexbody - 664 sys sys 1131293457 9188
 sys/src/cmd/cc/mac.c - 664 sys sys 944960808 36
 sys/src/cmd/cc/macbody - 664 sys sys 1108281581 11703
-sys/src/cmd/cc/machcap.c - 664 sys sys 1084472048 78
 sys/src/cmd/cc/mkfile - 664 sys sys 1143240308 564
 sys/src/cmd/cc/omachcap.c - 664 sys sys 1143241829 78
 sys/src/cmd/cc/pgen.c - 664 sys sys 1143240307 6826
@@ -10042,7 +10044,7 @@ sys/src/cmd/dossrv/dat.h - 664 sys sys 1017679316 5376
 sys/src/cmd/dossrv/devio.c - 664 sys sys 1017679315 1122
 sys/src/cmd/dossrv/dosfs.c - 664 sys sys 1032057271 17030
 sys/src/cmd/dossrv/dosfs.h - 664 sys sys 1014925385 160
-sys/src/cmd/dossrv/dossubs.c - 664 sys sys 1045505070 37735
+sys/src/cmd/dossrv/dossubs.c - 664 sys sys 1143289669 37706
 sys/src/cmd/dossrv/errstr.h - 664 sys sys 1014925385 544
 sys/src/cmd/dossrv/fns.h - 664 sys sys 1014925385 1989
 sys/src/cmd/dossrv/iotrack.c - 664 sys sys 1014925385 5153
@@ -12634,7 +12636,7 @@ sys/src/cmd/ndb/dblookup.c - 664 sys sys 1123602793 18275
 sys/src/cmd/ndb/dn.c - 664 sys sys 1127392642 27986
 sys/src/cmd/ndb/dnarea.c - 664 sys sys 1121977162 2128
 sys/src/cmd/ndb/dnnotify.c - 664 sys sys 1055701929 3062
-sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1079747687 15363
+sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1143289655 15331
 sys/src/cmd/ndb/dns.c - 664 sys sys 1134305452 15248
 sys/src/cmd/ndb/dns.h - 664 sys sys 1135487937 10143
 sys/src/cmd/ndb/dnsdebug.c - 664 sys sys 1079747685 8488
@@ -13288,7 +13290,7 @@ sys/src/cmd/ssh/ciphertwiddle.c - 664 sys sys 1016466379 380
 sys/src/cmd/ssh/cmsg.c - 664 sys sys 1133814916 7906
 sys/src/cmd/ssh/mkfile - 664 sys sys 1048179592 1045
 sys/src/cmd/ssh/msg.c - 664 sys sys 1092516579 8102
-sys/src/cmd/ssh/pubkey.c - 664 sys sys 1019928902 3974
+sys/src/cmd/ssh/pubkey.c - 664 sys sys 1143289680 3951
 sys/src/cmd/ssh/scp.c - 664 sys sys 1094156297 13889
 sys/src/cmd/ssh/smsg.c - 664 sys sys 1092516575 6374
 sys/src/cmd/ssh/ssh.c - 664 sys sys 1133821217 9671
@@ -13870,7 +13872,7 @@ sys/src/cmd/unix/drawterm/win32-386/md5block.spp - 664 sys sys 1135900544 6591
 sys/src/cmd/unix/drawterm/win32-386/sha1block.spp - 664 sys sys 1135900544 4912
 sys/src/cmd/unix/drawterm/win32-386/tas.c - 664 sys sys 1135900544 270
 sys/src/cmd/unix/drawterm/win32-factotum.c - 664 sys sys 1135900536 238
-sys/src/cmd/unix/netkey.c - 664 sys sys 1045152984 21761
+sys/src/cmd/unix/netkey.c - 664 sys sys 1143289644 21732
 sys/src/cmd/unix/u9fs - 20000000775 sys sys 1015092354 0
 sys/src/cmd/unix/u9fs/LICENSE - 664 sys sys 1132498433 735
 sys/src/cmd/unix/u9fs/authnone.c - 664 sys sys 1015092351 321
@@ -14075,7 +14077,7 @@ sys/src/cmd/va - 20000000775 sys sys 954038374 0
 sys/src/cmd/va/a.h - 664 sys sys 1089299166 2915
 sys/src/cmd/va/a.y - 664 sys sys 944961340 7211
 sys/src/cmd/va/l.s - 664 sys sys 944961340 12696
-sys/src/cmd/va/lex.c - 664 sys sys 1089299166 12004
+sys/src/cmd/va/lex.c - 664 sys sys 1143293804 12095
 sys/src/cmd/va/mkfile - 664 sys sys 944961340 215
 sys/src/cmd/vac - 20000000775 sys sys 1019678788 0
 sys/src/cmd/vac/cache.c - 664 sys sys 1071245791 15806
@@ -14110,7 +14112,7 @@ sys/src/cmd/vc/mul.c - 664 sys sys 944961340 9189
 sys/src/cmd/vc/peep.c - 664 sys sys 1089299165 10302
 sys/src/cmd/vc/reg.c - 664 sys sys 1089299166 19378
 sys/src/cmd/vc/sgen.c - 664 sys sys 1143241861 3139
-sys/src/cmd/vc/swt.c - 664 sys sys 1143241862 11294
+sys/src/cmd/vc/swt.c - 664 sys sys 1143290259 11310
 sys/src/cmd/vc/txt.c - 664 sys sys 1089299165 22720
 sys/src/cmd/vc/v.out.h - 664 sys sys 1089299165 2630
 sys/src/cmd/venti - 20000000775 sys sys 947360466 0
@@ -14191,13 +14193,13 @@ sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744
 sys/src/cmd/vi/syscall.c - 664 sys sys 1124229128 14183
 sys/src/cmd/vi/vi.c - 664 sys sys 1124229128 8989
 sys/src/cmd/vl - 20000000775 sys sys 944961343 0
-sys/src/cmd/vl/asm.c - 664 sys sys 1055699754 30723
+sys/src/cmd/vl/asm.c - 664 sys sys 1143293749 31296
 sys/src/cmd/vl/compat.c - 664 sys sys 944961343 445
-sys/src/cmd/vl/l.h - 664 sys sys 1089299164 5422
+sys/src/cmd/vl/l.h - 664 sys sys 1143293748 5458
 sys/src/cmd/vl/list.c - 664 sys sys 1055699765 4753
 sys/src/cmd/vl/mkfile - 664 sys sys 944961342 372
 sys/src/cmd/vl/noop.c - 664 sys sys 944961342 7349
-sys/src/cmd/vl/obj.c - 664 sys sys 1089299164 23039
+sys/src/cmd/vl/obj.c - 664 sys sys 1143293748 23718
 sys/src/cmd/vl/optab.c - 664 sys sys 944961342 8973
 sys/src/cmd/vl/pass.c - 664 sys sys 1132449538 8706
 sys/src/cmd/vl/sched.c - 664 sys sys 1014936060 11363

+ 45 - 0
dist/replica/plan9.log

@@ -28258,3 +28258,48 @@
 1143242549 28 c sys/src/cmd/7c/sgen.c - 664 sys sys 1143241857 3294
 1143242549 29 c sys/src/cmd/7c/swt.c - 664 sys sys 1143241857 10652
 1143242549 30 c sys/src/cmd/7c/txt.c - 664 sys sys 1143241858 20240
+1143289892 0 c 386/bin/8c - 775 sys sys 1143289032 363714
+1143289892 1 c sys/src/9/port/sysproc.c - 664 sys sys 1143289632 21534
+1143289892 2 c sys/src/cmd/8c/8.out.h - 664 sys sys 1143289023 4120
+1143289892 3 c sys/src/cmd/dossrv/dossubs.c - 664 sys sys 1143289669 37706
+1143289892 4 c sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1143289655 15331
+1143289892 5 c sys/src/cmd/ssh/pubkey.c - 664 sys sys 1143289680 3951
+1143289892 6 c sys/src/cmd/unix/netkey.c - 664 sys sys 1143289644 21732
+1143289892 7 d sys/src/cmd/cc/machcap.c - 664 sys sys 1084472048 0
+1143291703 0 a rc/bin/0c - 775 sys sys 1143290256 24
+1143291703 1 c sys/src/cmd/cc/cc.h - 664 sys sys 1143290259 12189
+1143291703 2 c sys/src/cmd/cc/lex.c - 664 sys sys 1143290259 24192
+1143291703 3 c sys/src/cmd/vc/swt.c - 664 sys sys 1143290259 11310
+1143295299 0 a rc/bin/0a - 775 sys sys 1143293821 24
+1143295299 1 a rc/bin/0l - 775 sys sys 1143293821 24
+1143295299 2 c sys/man/1/2a - 664 sys sys 1143293894 1192
+1143295299 3 c sys/man/1/2c - 664 sys sys 1143293856 8288
+1143295299 4 c sys/man/1/2l - 664 sys sys 1143293894 4372
+1143295299 5 c sys/src/cmd/va/lex.c - 664 sys sys 1143293804 12095
+1143295299 6 c sys/src/cmd/vl/asm.c - 664 sys sys 1143293749 31296
+1143295299 7 c sys/src/cmd/vl/l.h - 664 sys sys 1143293748 5458
+1143295299 8 c sys/src/cmd/vl/obj.c - 664 sys sys 1143293748 23718
+1143309708 0 c 386/bin/8c - 775 sys sys 1143309591 363861
+1143309708 1 c 386/bin/dossrv - 775 sys sys 1143309591 137759
+1143309708 2 c 386/lib/ape/libap.a - 664 sys sys 1143309593 816080
+1143309708 3 c 386/lib/ape/libbsd.a - 664 sys sys 1143309593 183044
+1143309708 4 c 386/lib/ape/libfmt.a - 664 sys sys 1143309594 150938
+1143309708 5 c 386/lib/ape/libregexp.a - 664 sys sys 1143309594 47656
+1143309708 6 c 386/lib/lib9p.a - 664 sys sys 1143309595 91144
+1143309708 7 c 386/lib/libauth.a - 664 sys sys 1143309595 58624
+1143309708 8 c 386/lib/libauthsrv.a - 664 sys sys 1143309595 34196
+1143309708 9 c 386/lib/libbio.a - 664 sys sys 1143309595 26040
+1143309708 10 c 386/lib/libc.a - 664 sys sys 1143309596 503124
+1143309708 11 c 386/lib/libcontrol.a - 664 sys sys 1143309597 274912
+1143309708 12 c 386/lib/libdisk.a - 664 sys sys 1143309597 42402
+1143309708 13 c 386/lib/libflate.a - 664 sys sys 1143309597 76818
+1143309708 14 c 386/lib/libhttpd.a - 664 sys sys 1143309598 99554
+1143309708 15 c 386/lib/libip.a - 664 sys sys 1143309598 35590
+1143309708 16 c 386/lib/libmach.a - 664 sys sys 1143309600 782134
+1143309708 17 c 386/lib/libregexp.a - 664 sys sys 1143309600 37450
+1143309708 18 c 386/lib/libscribble.a - 664 sys sys 1143309600 107266
+1143309708 19 c 386/lib/libsec.a - 664 sys sys 1143309601 646928
+1143309708 20 c 386/lib/libstdio.a - 664 sys sys 1143309602 126110
+1143309708 21 c 386/lib/libsunrpc.a - 664 sys sys 1143309603 355930
+1143309708 22 c 386/lib/libthread.a - 664 sys sys 1143309603 71946
+1143309708 23 c 386/lib/libventi.a - 664 sys sys 1143309603 97998

+ 2 - 0
rc/bin/0a

@@ -0,0 +1,2 @@
+#!/bin/rc
+exec va -L $*

+ 2 - 0
rc/bin/0c

@@ -0,0 +1,2 @@
+#!/bin/rc
+exec vc -l $*

+ 2 - 0
rc/bin/0l

@@ -0,0 +1,2 @@
+#!/bin/rc
+exec vl -L $*

+ 1 - 1
sys/man/1/2a

@@ -1,6 +1,6 @@
 .TH 2A 1 
 .SH NAME
-1a, 2a, 5a, 7a, 8a, ka, qa, va \- assemblers
+0a, 1a, 2a, 5a, 7a, 8a, ka, qa, va \- assemblers
 .SH SYNOPSIS
 .B 2a
 [

+ 4 - 1
sys/man/1/2c

@@ -1,6 +1,6 @@
 .TH 2C 1 
 .SH NAME
-1c, 2c, 5c, 7c, 8c, kc, qc, vc \- C compilers
+0c, 1c, 2c, 5c, 7c, 8c, kc, qc, vc \- C compilers
 .SH SYNOPSIS
 .B 2c
 [
@@ -19,6 +19,9 @@ Associated with each compiler is a string
 .IR objtype ,
 for example
 .TP 1.5i
+.B "0c spim
+little-endian MIPS 3000 family
+.TP
 .B "1c 68000
 Motorola MC68000
 .TP

+ 1 - 1
sys/man/1/2l

@@ -1,6 +1,6 @@
 .TH 2L 1 
 .SH NAME
-1l, 2l, 5l, 7l, 8l, kl, ql, vl \- loaders
+0l, 1l, 2l, 5l, 7l, 8l, kl, ql, vl \- loaders
 .SH SYNOPSIS
 .B 2l
 [

+ 1 - 1
sys/src/9/port/sysproc.c

@@ -1011,7 +1011,7 @@ semacquire(Segment *s, long *addr, int block)
 		return 1;
 	if(!block)
 		return 0;
-	
+
 	acquired = 0;
 	semqueue(s, addr, &phore);
 	for(;;){

+ 1 - 1
sys/src/cmd/8c/8.out.h

@@ -420,7 +420,7 @@ enum
 	T_SYM		= 1<<4,
 	T_SCONST	= 1<<5,
 
-	REGARG		= 0,
+	REGARG		= -1,
 	REGRET		= D_AX,
 	FREGRET		= D_F0,
 	REGSP		= D_SP,

+ 1 - 0
sys/src/cmd/cc/cc.h

@@ -476,6 +476,7 @@ EXTERN	int	packflg;
 EXTERN	int	fproundflg;
 EXTERN	int	profileflg;
 EXTERN	Bits	zbits;
+EXTERN	int	little;
 
 extern	char	*onames[], *tnames[], *gnames[];
 extern	char	*cnames[], *qnames[], *bnames[];

+ 24 - 13
sys/src/cmd/cc/lex.c

@@ -7,27 +7,28 @@
 
 /*
  * known debug flags
- *	-o file		output file
- *	-D name		define
- *	-I path		include
  *	-a		acid declaration output
- *	-M		constant multiplication
- *	-B		non ANSI
  *	-A		!B
+ *	-B		non ANSI
  *	-d		print declarations
- *	-t		print type trees
- *	-L		print every NAME symbol
- *	-i		print initialization
+ *	-D name		define
  *	-F		format specification check
- *	-r		print registerization
- *	-v		verbose printing
- *	-X		abort on error
- *	-w		print warnings
+ *	-i		print initialization
+ *	-I path		include
+ *	-l		generate little-endian code
+ *	-L		print every NAME symbol
+ *	-M		constant multiplication
  *	-m		print add/sub/mul trees
- *	-s		print structure offsets (with -a or -aa)
  *	-n		print acid to file (%.c=%.acid) (with -a or -aa)
+ *	-o file		output file
  *	-p		use standard cpp ANSI preprocessor (not on windows)
+ *	-r		print registerization
+ *	-s		print structure offsets (with -a or -aa)
+ *	-t		print type trees
  *	-V		enable void* conversion warnings
+ *	-v		verbose printing
+ *	-w		print warnings
+ *	-X		abort on error
  */
 
 void
@@ -54,6 +55,16 @@ main(int argc, char *argv[])
 			debug[c]++;
 		break;
 
+	case 'l':			/* for little-endian mips */
+		if(thechar != 'v'){
+			print("can only use -l with vc");
+			errorexit();
+		}
+		thechar = '0';
+		thestring = "spim";
+		little = 1;
+		break;
+
 	case 'o':
 		outfile = ARGF();
 		break;

+ 0 - 8
sys/src/cmd/cc/machcap.c

@@ -1,8 +0,0 @@
-#include	"cc.h"
-
-/* default, like old cc */
-int
-machcap(Node*)
-{
-	return 0;
-}

+ 0 - 1
sys/src/cmd/dossrv/dossubs.c

@@ -1501,7 +1501,6 @@ iscontig(Xfs *xf, Dosdir *d)
 			return 0;
 		clust = next;
 	}
-	return 0;	/* not reached */
 }
 
 /*

+ 0 - 2
sys/src/cmd/ndb/dnresolve.c

@@ -389,8 +389,6 @@ readreply(int fd, DN *dp, int type, ushort req,
 
 		return 0;
 	}
-
-	return 0;	/* never reached */
 }
 
 /*

+ 0 - 1
sys/src/cmd/ssh/pubkey.c

@@ -79,7 +79,6 @@ readpublickey(Biobuf *b, char **sp)
 		fprint(2, "warning: skipping line '%s'; cannot parse\n", s);
 		free(s);
 	}
-	return nil;	/* ken */
 }
 
 static int

+ 0 - 1
sys/src/cmd/unix/netkey.c

@@ -537,7 +537,6 @@ passtokey(char *key, char *p)
 		}
 		encrypt9(key, t, 8);
 	}
-	return 1;	/* not reached */
 }
 
 int

+ 4 - 0
sys/src/cmd/va/lex.c

@@ -36,6 +36,10 @@ main(int argc, char *argv[])
 		p = ARGF();
 		setinclude(p);
 		break;
+	case  'L':			/* for little-endian mips */
+		thechar = '0';
+		thestring = "spim";
+		break;
 	} ARGEND
 	if(*argv == 0) {
 		print("usage: %ca [-options] file.s\n", thechar);

+ 2 - 1
sys/src/cmd/vc/swt.c

@@ -636,7 +636,8 @@ align(long i, Type *t, int op)
 			w = SZ_LONG;
 			break;
 		}
-		o += SZ_LONG - w;	/* big endian adjustment */
+		if (!little)
+			o += SZ_LONG - w;	/* big endian adjustment */
 		w = 1;
 		break;
 

+ 54 - 18
sys/src/cmd/vl/asm.c

@@ -13,7 +13,27 @@ long	BADOFFSET	=	-1;
 		OFFSET++;\
 */
 
-#define	LPUT(c)\
+#define LPUT(l) { \
+		if (little) { \
+			LLEPUT(l); \
+		} else { \
+			LBEPUT(l); \
+		} \
+	}
+
+#define	LLEPUT(c)\
+	{\
+		cbp[0] = (c);\
+		cbp[1] = (c)>>8;\
+		cbp[2] = (c)>>16;\
+		cbp[3] = (c)>>24;\
+		cbp += 4;\
+		cbc -= 4;\
+		if(cbc <= 0)\
+			cflush();\
+	}
+
+#define	LBEPUT(c)\
 	{\
 		cbp[0] = (c)>>24;\
 		cbp[1] = (c)>>16;\
@@ -25,6 +45,7 @@ long	BADOFFSET	=	-1;
 			cflush();\
 	}
 
+
 #define	CPUT(c)\
 	{\
 		cbp[0] = (c);\
@@ -34,6 +55,18 @@ long	BADOFFSET	=	-1;
 			cflush();\
 	}
 
+void
+objput(long l)	/* emit long in byte order appropriate to object machine */
+{
+	LPUT(l);
+}
+
+void
+lput(long l)		/* emit long in big-endian byte order */
+{
+	LBEPUT(l);
+}
+
 long
 entryvalue(void)
 {
@@ -111,6 +144,7 @@ asmb(void)
 	case 2:
 	case 3:
 	case 5:
+	case 6:
 		OFFSET = HEADR+textsize;
 		seek(cout, OFFSET, 0);
 		break;
@@ -138,6 +172,7 @@ asmb(void)
 		case 2:
 		case 1:
 		case 5:
+		case 6:
 			OFFSET = HEADR+textsize+datsize;
 			seek(cout, OFFSET, 0);
 			break;
@@ -203,7 +238,11 @@ asmb(void)
 		lput(0L);			/* complete mystery */
 		break;
 	case 2:
-		lput(0x407);			/* magic */
+		if (little)
+			t = 24;
+		else
+			t = 16;
+		lput(((((4*t)+0)*t)+7));	/* magic */
 		lput(textsize);			/* sizes */
 		lput(datsize);
 		lput(bsssize);
@@ -333,14 +372,15 @@ asmb(void)
 		lput((3L<<16)|0L);		/* # Phdrs & Shdr size */
 		lput((0L<<16)|0L);		/* # Shdrs & shdr string size */
 
-		lput(1L);			/* text - type = PT_LOAD */
-		lput(0L);			/* file offset */
-		lput(INITTEXT-HEADR);		/* vaddr */
-		lput(INITTEXT-HEADR);		/* paddr */
-		lput(HEADR+textsize);		/* file size */
-		lput(HEADR+textsize);		/* memory size */
-		lput(0x05L);			/* protections = RX */
-		lput(0x10000L);			/* alignment code?? */
+		/* TODO: only these few words are in native byte order? */
+		objput(1L);			/* text - type = PT_LOAD */
+		objput(0L);			/* file offset */
+		objput(INITTEXT-HEADR);		/* vaddr */
+		objput(INITTEXT-HEADR);		/* paddr */
+		objput(HEADR+textsize);		/* file size */
+		objput(HEADR+textsize);		/* memory size */
+		objput(0x05L);			/* protections = RX */
+		objput(0x10000L);		/* alignment code?? */
 
 		lput(1L);			/* data - type = PT_LOAD */
 		lput(HEADR+textsize);		/* file offset */
@@ -359,6 +399,9 @@ asmb(void)
 		lput(lcsize);			/* line number size */
 		lput(0x04L);			/* protections = R */
 		lput(0x04L);			/* alignment code?? */
+		break;
+	case 6:
+		break;
 	}
 	cflush();
 }
@@ -374,13 +417,6 @@ strnput(char *s, int n)
 		CPUT(0);
 }
 
-void
-lput(long l)
-{
-
-	LPUT(l);
-}
-
 void
 cflush(void)
 {
@@ -477,7 +513,7 @@ putsymb(char *s, int t, long v, int ver)
 
 	if(t == 'f')
 		s++;
-	LPUT(v);
+	LBEPUT(v);
 	if(ver)
 		t += 'a' - 'A';
 	CPUT(t+0x80);			/* 0x80 is variable length */

+ 2 - 0
sys/src/cmd/vl/l.h

@@ -237,6 +237,7 @@ EXTERN	int	version;
 EXTERN	char	xcmp[32][32];
 EXTERN	Prog	zprg;
 EXTERN	int	dtype;
+EXTERN	int	little;
 
 EXTERN	struct
 {
@@ -298,6 +299,7 @@ void	loadlib(void);
 void	listinit(void);
 Sym*	lookup(char*, int);
 void	lput(long);
+void	bput(long);
 void	mkfwd(void);
 void*	mysbrk(ulong);
 void	names(void);

+ 45 - 14
sys/src/cmd/vl/obj.c

@@ -18,8 +18,11 @@ char	*thestring 	= "mips";
  *	-H3 -T0x80020000 -R8		is bootp() format for 4k
  *	-H4 -T0x400000 -R4		is sgi unix coff executable
  *	-H5 -T0x4000A0 -R4		is sgi unix elf executable
+ *	-H6						is headerless
  */
 
+int little;
+
 void
 main(int argc, char *argv[])
 {
@@ -52,6 +55,11 @@ main(int argc, char *argv[])
 		if(a)
 			INITENTRY = a;
 		break;
+	case  'L':			/* for little-endian mips */
+		thechar = '0';
+		thestring = "spim";
+		little = 1;
+		break;
 	case 'T':
 		a = ARGF();
 		if(a)
@@ -150,6 +158,15 @@ main(int argc, char *argv[])
 		if(INITRND == -1)
 			INITRND = 0;
 		break;
+	case 6:	/* headerless */
+		HEADR = 0;
+		if(INITTEXT == -1)
+			INITTEXT = 0x80000000L+HEADR;
+		if(INITDAT == -1)
+			INITDAT = 0;
+		if(INITRND == -1)
+			INITRND = 4096;
+		break;
 	}
 	if(INITDAT != 0 && INITRND != 0)
 		print("warning: -D0x%lux is ignored because of -R0x%lux\n",
@@ -170,8 +187,12 @@ main(int argc, char *argv[])
 	datap = P;
 	pc = 0;
 	dtype = 4;
-	if(outfile == 0)
-		outfile = "v.out";
+	if(outfile == 0) {
+		static char name[20];
+
+		snprint(name, sizeof name, "%c.out", thechar);
+		outfile = name;
+	}
 	cout = create(outfile, 1, 0775);
 	if(cout < 0) {
 		diag("%s: cannot create", outfile);
@@ -677,7 +698,7 @@ loop:
 	o = bloc[0];		/* as */
 	if(o <= AXXX || o >= ALAST) {
 		diag("%s: line %ld: opcode out of range %d", pn, pc-ipc, o);
-		print("	probably not a .v file\n");
+		print("	probably not a .%c file\n", thechar);
 		errorexit();
 	}
 	if(o == ANAME || o == ASIGNAME) {
@@ -1239,17 +1260,27 @@ nuxiinit(void)
 {
 	int i, c;
 
-	for(i=0; i<4; i++) {
-		c = find1(0x01020304L, i+1);
-		if(i >= 2)
-			inuxi2[i-2] = c;
-		if(i >= 3)
-			inuxi1[i-3] = c;
-		inuxi4[i] = c;
-
-		fnuxi8[i] = c+4;
-		fnuxi8[i+4] = c;
-	}
+	for(i=0; i<4; i++)
+		if (!little) {			/* normal big-endian case */
+			c = find1(0x01020304L, i+1);
+			if(i >= 2)
+				inuxi2[i-2] = c;
+			if(i >= 3)
+				inuxi1[i-3] = c;
+			inuxi4[i] = c;
+			fnuxi8[i] = c+4;
+			fnuxi8[i+4] = c;
+		} else {			/* oddball little-endian case */
+			c = find1(0x04030201L, i+1);
+			if(i < 2)
+				inuxi2[i] = c;
+			if(i < 1)
+				inuxi1[i] = c;
+			inuxi4[i] = c;
+			fnuxi4[i] = c;
+			fnuxi8[i] = c;
+			fnuxi8[i+4] = c+4;
+		}
 	if(debug['v']) {
 		Bprint(&bso, "inuxi = ");
 		for(i=0; i<1; i++)