From 924f7606047a430a9b313c135b782e1e8f852bec Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 15 Mar 2020 21:16:13 +0100 Subject: pkg/compiler: ensure consistency of syscall argument types Ensure that we don't have conflicting sizes for the same argument of the same syscall, e.g.: foo$1(a int16) foo$2(a int32) This is useful for several reasons: - we will be able avoid morphing syscalls into other syscalls - we will be able to figure out more precise sizes for args (lots of them are implicitly intptr, which is the largest type on most important arches) - found few bugs in linux descriptions Update #477 Update #502 --- prog/size_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/size_test.go') diff --git a/prog/size_test.go b/prog/size_test.go index 7b248bd4f..5356c5263 100644 --- a/prog/size_test.go +++ b/prog/size_test.go @@ -96,8 +96,8 @@ func TestAssignSize(t *testing.T) { "test$length14(&(0x7f0000000000)={0xff, 0xff, [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff]}, &(0x7f0000001000)=0x30)", }, { - "test$length15(0xff, 0x0)", - "test$length15(0xff, 0x2)", + "test_length15(0xff, 0x0)", + "test_length15(0xff, 0x2)", }, { "test$length16(&(0x7f0000000000)={[0x42, 0x42], 0xff, 0xff, 0xff, 0xff, 0xff})", -- cgit mrf-deployment