Giter Site home page Giter Site logo

Comments (2)

SwimmingTiger avatar SwimmingTiger commented on June 25, 2024

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.

SwimmingTiger avatar SwimmingTiger commented on June 25, 2024

May we need the pull request:
https://github.com/gomini/go-mips32/pull/7/files

from go-mips32.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.