proc/*: add launch option to disable ASLR (#2202)

Fixes #1847
This commit is contained in:
Alessandro Arzilli
2020-10-21 21:50:52 +02:00
committed by GitHub
parent 0bbf9e4eaf
commit 9a3c9ebad1
27 changed files with 76 additions and 17 deletions

View File

@ -14,7 +14,7 @@ func TestLoadingExternalDebugInfo(t *testing.T) {
fixture := protest.BuildFixture("locationsprog", 0)
defer os.Remove(fixture.Path)
stripAndCopyDebugInfo(fixture, t)
p, err := native.Launch(append([]string{fixture.Path}, ""), "", false, []string{filepath.Dir(fixture.Path)}, "", [3]string{})
p, err := native.Launch(append([]string{fixture.Path}, ""), "", 0, []string{filepath.Dir(fixture.Path)}, "", [3]string{})
if err != nil {
t.Fatal(err)
}