aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorHubert Tong <hubert.reinterpretcast@gmail.com>2020-10-23 14:25:22 -0400
committerHubert Tong <hubert.reinterpretcast@gmail.com>2020-10-23 14:32:36 -0400
commit1602c6fd9294494aaa7461e258602d486166b303 (patch)
tree79761529c70694d3361f81a29555a4a02b8f263b /llvm/lib/CodeGen/StackProtector.cpp
parentb67a2aef8ac9fd9c10666a05d72d909315140dcb (diff)
downloadllvm-1602c6fd9294494aaa7461e258602d486166b303.zip
llvm-1602c6fd9294494aaa7461e258602d486166b303.tar.gz
llvm-1602c6fd9294494aaa7461e258602d486166b303.tar.bz2
[AIX][cmake] Adjust management of `-G` for linking
The change in 0ba98433971f changed the behaviour of the build when using an XL build compiler because `-G` is not a pure linker option: it also implies `-shared`. This was accounted for in the base CMake configuration, so an analysis of the change from 0ba98433971f in relation to a build using Clang (where `-shared` is introduced by CMake) would not identify the issue. This patch resolves this particular issue by adding `-shared` alongside `-Wl,-G`. At the same time, the investigation reveals that several aspects of the various build configurations are not operating in the manner originally intended. The other issue related to the `-G` linker option in the build is that the removal of it (to avoid unnecessary use of run-time linking) is not effective for the build using the Clang compiler. This patch addresses this by adjusting the regular expressions used to remove the broadly- applied `-G`. Finally, the issue of specifying the export list with `-Wl,` instead of a compiler option is flagged with a FIXME comment. Reviewed By: daltenty, amyk Differential Revision: https://reviews.llvm.org/D90041
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions