-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clang: -fno-pie should not imply -fdirect-access-external-data for loongarch*-linux #71645
Labels
Comments
github-actions
bot
added
the
clang
Clang issues not falling into any other category
label
Nov 8, 2023
|
EugeneZelenko
added
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
backend:loongarch
and removed
clang
Clang issues not falling into any other category
labels
Nov 8, 2023
@llvm/issue-subscribers-clang-driver Author: Xi Ruoyao (xry111)
loongarch*-linux does not and will not support copy relocation, so -fdirect-access-external-data generally does not work for any dynamic-linked executable.
|
add @wangleiat |
heiher
added a commit
to heiher/llvm-project
that referenced
this issue
Nov 10, 2023
LoongArch does not and will not support copy relocation, so non-PIC code defaults to -fno-direct-access-external-data. Explicit `-fdirect-access-external-data` is acceptable, for example if the code is writable. Reported-by: Xi Ruoyao <[email protected]> Signed-off-by: WANG Rui <[email protected]> Fixes llvm#71645
MaskRay
added a commit
to MaskRay/llvm-project
that referenced
this issue
Nov 14, 2023
…n-PIC 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 llvm#71645
MaskRay
added a commit
that referenced
this issue
Nov 14, 2023
…n-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
zahiraam
pushed a commit
to zahiraam/llvm-project
that referenced
this issue
Nov 20, 2023
…n-PIC (llvm#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 llvm#71645
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
loongarch*-linux does not and will not support copy relocation, so -fdirect-access-external-data generally does not work for any dynamic-linked executable.
The text was updated successfully, but these errors were encountered: