HomePhabricator

[Sanitizers] [MinGW] Produce undecorated symbols for /export: directives when…

Description

[Sanitizers] [MinGW] Produce undecorated symbols for /export: directives when in MinGW mode

In MinGW mode, the /export: directives in object files are interpreted
differently; the symbols are not assumed to be decorated.

Since the GNU linker doesn't support the /alternatename and /include
directives, there's no such distinction for them in lld. This assumes
that the resulting sanitizer libraries will be linked by lld.

Differential Revision: https://reviews.llvm.org/D51882

Event Timeline

lei added a subscriber: lei.EditedSep 25 2018, 2:25 PM

This is causing the buildbot failures for powerpc: http://lab.llvm.org:8011/builders/clang-ppc64le-linux

Please fix your lines to be <=80 characters.

FAILED: cd /home/buildbots/ppc64le-clang-test/clang-ppc64le/stage1/projects/compiler-rt/lib && env LLVM_CHECKOUT=/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm SILENT=1 TMPDIR= PYTHON_EXECUTABLE=/usr/bin/python2.7 COMPILER_RT=/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt /home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_win_defs.h:75:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=64.634969

This is causing the buildbot failures for powerpc: http://lab.llvm.org:8011/builders/clang-ppc64le-linux

Please fix your lines to be <=80 characters.

FAILED: cd /home/buildbots/ppc64le-clang-test/clang-ppc64le/stage1/projects/compiler-rt/lib && env LLVM_CHECKOUT=/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm SILENT=1 TMPDIR= PYTHON_EXECUTABLE=/usr/bin/python2.7 COMPILER_RT=/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt /home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt/lib/sanitizer_common/scripts/check_lint.sh
/home/buildbots/ppc64le-clang-test/clang-ppc64le/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_win_defs.h:75:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
ninja: build stopped: subcommand failed.
program finished with exit code 1
elapsedTime=64.634969

Sorry about that - this should hopefully be fixed now.