summaryrefslogtreecommitdiff
path: root/chromium/build/config/fuchsia/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/build/config/fuchsia/BUILD.gn')
-rw-r--r--chromium/build/config/fuchsia/BUILD.gn7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/build/config/fuchsia/BUILD.gn b/chromium/build/config/fuchsia/BUILD.gn
index 7ee1923d946..427f364a6b4 100644
--- a/chromium/build/config/fuchsia/BUILD.gn
+++ b/chromium/build/config/fuchsia/BUILD.gn
@@ -13,6 +13,13 @@ config("compiler") {
# but on other platforms it's much higher, so a variety of code assumes more
# will be available. Raise to 8M which matches e.g. macOS.
ldflags = [ "-Wl,-z,stack-size=0x800000" ]
+
+ if (target_cpu != "arm64") {
+ # TODO(https://crbug.com/1086134): RELR packing of dynamic relocations is
+ # enabled by default in the Fuchsia toolchain, but is not fully supported
+ # in Chromium builds except on ARM64.
+ ldflags += [ "-Wl,--pack-dyn-relocs=none" ]
+ }
}
# Settings for executables.