Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
3adfef32
Unverified
Commit
3adfef32
authored
May 03, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mipsevm: extend program patching
parent
a9289d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
patch.go
mipsevm/patch.go
+10
-0
No files found.
mipsevm/patch.go
View file @
3adfef32
...
...
@@ -65,6 +65,16 @@ func PatchGo(f *elf.File, st *State) error {
"runtime.main.func1"
,
// patch out: main.func() { newm(sysmon, ....) }
"runtime.deductSweepCredit"
,
// uses floating point nums and interacts with gc we disabled
"runtime.(*gcControllerState).commit"
,
// these prometheus packages rely on concurrent background things. We cannot run those.
"github.com/prometheus/client_golang/prometheus.init"
,
"github.com/prometheus/client_golang/prometheus.init.0"
,
"github.com/prometheus/procfs.init"
,
"github.com/prometheus/common/model.init"
,
"github.com/prometheus/client_model/go.init"
,
"github.com/prometheus/client_model/go.init.0"
,
"github.com/prometheus/client_model/go.init.1"
,
// skip flag pkg init, we need to debug arg-processing more to see why this fails
"flag.init"
,
// We need to patch this out, we don't pass float64nan because we don't support floats
"runtime.check"
:
// MIPS32 patch: ret (pseudo instruction)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment