diff options
Diffstat (limited to 'cc/config/arm_device.go')
-rw-r--r-- | cc/config/arm_device.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cc/config/arm_device.go b/cc/config/arm_device.go index d702c6145..1adb477c2 100644 --- a/cc/config/arm_device.go +++ b/cc/config/arm_device.go @@ -181,7 +181,12 @@ func init() { exportedVars.ExportString("ArmClangTriple", clangTriple) exportedVars.ExportStringListStaticVariable("ArmLdflags", armLdflags) - exportedVars.ExportStringListStaticVariable("ArmLldflags", armLldflags) + exportedVars.ExportStringList("ArmLldflags", armLldflags) + pctx.VariableFunc("ArmLldflags", func(ctx android.PackageVarContext) string { + maxPageSizeFlag := "-Wl,-z,max-page-size=" + ctx.Config().MaxPageSizeSupported() + flags := append(armLldflags, maxPageSizeFlag) + return strings.Join(flags, " ") + }) exportedVars.ExportStringListStaticVariable("ArmFixCortexA8LdFlags", armFixCortexA8LdFlags) exportedVars.ExportStringListStaticVariable("ArmNoFixCortexA8LdFlags", armNoFixCortexA8LdFlags) |