Build of crashpad_tests for android fails when using gold linker
Reported by
djordje....@mips.com,
May 7 2018
|
|
Issue description
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0
Steps to reproduce the problem:
1. Fetch chromium source
2. gn gen out/Release --args=" target_os=\"android\" target_cpu=\"arm\" is_debug=false use_gold=true use_lld=false"
3. ninja -C out/Release crashpad_tests
What is the expected behavior?
What went wrong?
Build fails with following message from gold:
warning: Cannot export local symbol 'ElfImageReaderTestExportedSymbol'
Did this work before? N/A
Chrome version: <Copy from: 'about:version'> Channel: n/a
OS Version:
Flash Version: Shockwave Flash 29.0 r0
To bypass this problem, we use the patch attached here.
Warning seems to be caused by following two conflicting linker options which are given to crashpad_tests target:
-Wl,--dynamic-list,../../third_party/crashpad/crashpad/snapshot/elf/test_exported_symbols.sym
-Wl,--version-script=.../chromium/src/build/android/android_only_jni_exports.lst
This conflicting scenario doesn't cause warning in lld.
|
|
►
Sign in to add a comment |
|
Comment 1 by dtapu...@chromium.org
, May 7 2018