summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Stephen Crane <sjc@immunant.com> 2017-06-26 19:22:02 -0700
committer Stephen Crane <sjc@immunant.com> 2017-08-15 12:54:12 -0700
commitb3c2154f2afc419c8d6bc92c812eff0113e9f692 (patch)
treebc7fa56f2c08943d7c48b3f9045f63f9dc04eaa0 /python/python.go
parent38d3d5d2e5499fc759374e4ea38a041a8aeeb147 (diff)
Pass correct emulation string to gold
Gold recognizes a different set of emulation strings to specify targets than the bfd linker accepts. Clang only passes bfd emulations to the linker, so we need to override these with the versions accepted by gold when using gold. Gold normally picks up the correct target from the first ELF input file if it cannot parse the emulation parameter. However when using LTO, all objects may be bitcode files, which causes gold to rely on the passed --oformat or -m parameter to determine the proper target. If gold cannot parse the emulation string passed by clang, it fails to link. Test: build LTO version of libc Change-Id: I38e78bb912fd3cc5fb7b4a762284f50ddd4f3998
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions