loader: use correct word sizes/alignment depending on architecture
@@ -44,7 +44,9 @@ func NewProgram(ctx *build.Context) *Program {
prog := &Program{
Fset: fset,
Build: ctx,
- Config: &types.Config{},
+ Config: &types.Config{
+ Sizes: types.SizesFor(ctx.Compiler, ctx.GOARCH),
+ },
SSA: ssaprog,
packages: map[string][2]*Package{},
unsafe: &Package{
