attr,build: add TOPFRAME attribute (#98)

Go added the TOPFRAME attribute in https://golang.org/cl/169726/. This diff adds the new attribute to avo, and also updates handling of the REFLECTMETHOD attribute.
This commit is contained in:
Koichi Shiraishi
2019-09-27 13:11:50 +09:00
committed by Michael McLoughlin
parent c8004ba627
commit 15d6a9a17e
4 changed files with 204 additions and 197 deletions

View File

@@ -14,7 +14,8 @@ func TestAttributeAsm(t *testing.T) {
{RODATA | NOSPLIT, "NOSPLIT|RODATA"},
{WRAPPER | 16384 | NOPTR, "NOPTR|WRAPPER|16384"},
{NEEDCTXT + NOFRAME + TLSBSS, "NEEDCTXT|TLSBSS|NOFRAME"},
{REFLECTMETHOD, "1024"}, // REFLECTMETHOD special case due to https://golang.org/issue/29487
{REFLECTMETHOD, "REFLECTMETHOD"},
{TOPFRAME, "TOPFRAME"},
}
for _, c := range cases {
got := c.Attribute.Asm()