aboutsummaryrefslogtreecommitdiffstats
path: root/sysparser
diff options
context:
space:
mode:
Diffstat (limited to 'sysparser')
-rw-r--r--sysparser/lexer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysparser/lexer.go b/sysparser/lexer.go
index 57a474cf8..80e6bbbe2 100644
--- a/sysparser/lexer.go
+++ b/sysparser/lexer.go
@@ -76,6 +76,8 @@ func Parse(in io.Reader) *Description {
switch {
case attr == "packed":
str.Packed = true
+ case strings.HasPrefix(attr, "align_ptr"):
+ str.Align = 8 // TODO: this must be target pointer size
case strings.HasPrefix(attr, "align_"):
a, err := strconv.ParseUint(attr[6:], 10, 64)
if err != nil {