Skip to content

How to generate softfloat mips implants? #1929

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tardis07 opened this issue Apr 11, 2025 · 1 comment
Open

How to generate softfloat mips implants? #1929

Tardis07 opened this issue Apr 11, 2025 · 1 comment

Comments

@Tardis07
Copy link

I would like to generate a mips implants with softfloat. The generals ways to build a golang programe with softfloat is:

CC=mips-linux-gcc GOARCH=mips GOMIPS=softfloat CGO_ENABLED=1 /usr/local/go/bin/go build -ldflags="-w -s"

So, this issue can also be "Is it possible to add golang arguments during implant's generation?"


I generated the implant with the follow command below:

$ GOMIPS=softfloat sliver # I tried to start the server with GOMIPS environment
> generate --mtls <REDACTED>  --os linux --arch mips -s mips-r

and the binary info is as below (readelf -A ./mips-r):

Attribute Section: gnu
File Attributes
  Tag_GNU_MIPS_ABI_FP: Hard float (double precision)

MIPS ABI Flags Version: 0

ISA: MIPS32
GPR size: 32
CPR1 size: 32
CPR2 size: 0
FP ABI: Hard float (double precision)
ISA Extension: None
ASEs:
        None
FLAGS 1: 00000000
FLAGS 2: 00000000
@moloch--
Copy link
Member

We should probably add a general feature to pas GO ENV vars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants