Comments (2)
I build it with the patch:
diff --git a/src/cmd/6c/txt.c b/src/cmd/6c/txt.c
index 3bdbf41..916307d 100644
--- a/src/cmd/6c/txt.c
+++ b/src/cmd/6c/txt.c
@@ -992,7 +992,7 @@ gmove(Node *f, Node *t)
f->vconst &= 0xffff;
if(f->vconst & 0x8000){
f->vconst |= 0xffff0000;
- f->vconst |= (vlong)~0 << 32;
+ f->vconst |= (uvlong)~0 << 32;
}
a = AMOVL;
}
@@ -1042,7 +1042,7 @@ gmove(Node *f, Node *t)
f->vconst &= 0xff;
if(f->vconst & 0x80){
f->vconst |= 0xffffff00;
- f->vconst |= (vlong)~0 << 32;
+ f->vconst |= (uvlong)~0 << 32;
}
a = AMOVQ;
}
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c
index b92d2dd..65691c5 100644
--- a/src/cmd/ld/lib.c
+++ b/src/cmd/ld/lib.c
@@ -599,6 +599,8 @@ hostlink(void)
case '5':
argv[argc++] = "-marm";
break;
+ default:
+ break;
}
if(!debug['s'] && !debug_s) {
argv[argc++] = "-gdwarf-2";
diff --git a/src/liblink/asmv.c b/src/liblink/asmv.c
index 4bd7f7b..1c991c0 100644
--- a/src/liblink/asmv.c
+++ b/src/liblink/asmv.c
@@ -932,7 +932,7 @@ asmout(Link *ctxt, Prog *p, Optab *o, int32 *out)
int r, a;
Reloc *rel;
- o1 = o2 = o3 = o4 = 0;
+ o1 = o2 = o3 = o4 = o5 = 0;
switch(o->type) {
default:
ctxt->diag("unknown type %d", o->type);
However, it failed with the last step:
# Building packages and commands for linux/mips32.
runtime
go build runtime: /Users/yihao.peng/work/go-mips32/pkg/tool/darwin_amd64/vg: signal: abort trap
from go-mips32.
May we need the pull request:
https://github.com/gomini/go-mips32/pull/7/files
from go-mips32.
Related Issues (10)
- I get a error when compiling. HOT 1
- cgo support
- openwrt mips32le restart applicaion error
- Need some help please!!!
- src/cmd/6c/txt.c: error: left shift of negative value HOT 1
- FYI: compilation instructions
- o5 is not initialized HOT 1
- compile fails on MIPS 1004Kc
- import "context": import path does not contain a slash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-mips32.