diff options
author | Fangrui Song <i@maskray.me> | 2023-11-14 00:43:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 00:43:40 -0800 |
commit | 47eeee297775347cbdb7624d6a766c2a3eec4a59 (patch) | |
tree | d419178ad947d1d4493fb1646996ce7fe58d05b4 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | 6229cd0272a84bbfaeda171c3d502e864e85e173 (diff) | |
download | llvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.zip llvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.tar.gz llvm-47eeee297775347cbdb7624d6a766c2a3eec4a59.tar.bz2 |
[Driver] Default LoongArch to -fno-direct-access-external-data for non-PIC (#72221)
For -fno-pic, if an extern variable is defined in a DSO, a copy
relocation will be needed. However, loongarch*-linux does not and will
not support copy relocations.
Change Driver to default to -fno-direct-access-external-data for
LoongArch && non-PIC.
Keep Frontend conditions unchanged (-fdirect-access-external-data ||
-fno-direct-access-external-data && PIC>0 => direct access).
Fix #71645
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions