[test] Make ELF tests immune to dso_local/dso_preemptable/(none) differences
authorFangrui Song <i@maskray.me>
Thu, 31 Dec 2020 21:37:35 +0000 (13:37 -0800)
committerFangrui Song <i@maskray.me>
Thu, 31 Dec 2020 21:59:44 +0000 (13:59 -0800)
commit219d00e0d90941d3e54fc711ea1e7b5e4b5b4335
tree61b88559984040d1cd3f4f050e9b42f5100ffa46
parent14dc69b09218bb580069eb547bb16ab0c43db6d4
[test] Make ELF tests immune to dso_local/dso_preemptable/(none) differences

ELF -cc1 -mrelocation-model pic will default to no semantic interposition plus
setting dso_local on default visibility external linkage definitions, so that
COFF, Mach-O and ELF output will be similar.

This patch makes tests immune to the differences.
clang/test/CodeGenCUDA/lambda-reference-var.cu
clang/test/CodeGenCXX/default_calling_conv.cpp
clang/test/Driver/hip-fpie-option.hip
clang/test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp