DescriptionReland https://codereview.chromium.org/292153006 (Enable mac_strip_release under ASan on OSX. Remove the .saves files) with minor changes.
Unce upon a time the ASan runtime library used to be statically linked into
the executables on OSX.
Because that library provided a number of API functions needed by the shared
libraries, we had custom ASan-specific .saves files that told the `strip`
utility to preserve those functions when stripping the executables.
Then ASan switched to using dynamic runtime library, which instantly broke the
stripping step, because the executables weren't necessarily referencing all the
ASan API functions (issue 242503).
As a result, stripping has been disabled, and we haven't had .dSYM debug info
for ASan builds for more than a year now (issue 148383).
This CL makes the buildsystem strip only the debug info from the ASan binaries.
As a result, the .saves files aren't necessary anymore.
This CL deletes them and turns mac_strip_release on for ASan
builds.
BUG=148383, 242503, 170739, 166857
TBR=mark@chromium.org
Committed: https://crrev.com/1c2a4917f604903f092bb00afefbd0d5223bd2a8
Cr-Commit-Position: refs/heads/master@{#308976}
Patch Set 1 #Patch Set 2 : add README.chromium #Patch Set 3 : Remove comments #Patch Set 4 : Split asan_symbolize.py changes into https://codereview.chromium.org/797253002/ #Patch Set 5 : More comments #Patch Set 6 : Don't use .saves files for ASan #
Total comments: 2
Patch Set 7 : Remove -S from strip args for ASan #
Total comments: 1
Patch Set 8 : Use strip -x for both non-ASan and ASan builds #
Messages
Total messages: 24 (8 generated)
|