Commit 0f7d4279 by Nicolas Capens

Work around gold linker bug for 32-bit code.

Bug chromium:729532 Change-Id: Ie10edb39fdc61557f394cddca981f55e89b63cc4 Reviewed-on: https://swiftshader-review.googlesource.com/9950Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 3053bf0a
...@@ -87,6 +87,12 @@ config("swiftshader_config") { ...@@ -87,6 +87,12 @@ config("swiftshader_config") {
"-Wl,--hash-style=both", "-Wl,--hash-style=both",
"-Wl,--gc-sections", "-Wl,--gc-sections",
] ]
# A bug in the gold linker prevents using ICF on 32-bit (crbug.com/729532)
if (use_gold && target_cpu == "x86") {
ldflags += [
"-Wl,--icf=none",
]
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment