[lld] [ELF] Merge verdefIndex into versionId. NFC (PR #72208)

Mike Hommey via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 15 16:31:39 PST 2023


glandium wrote:

This is also breaking building clang itself with instrumentation for PGO:
```
[4032/4536] : && /builds/worker/fetches/llvm-project/build/stage2/clang/bin/clang++ --sysroot=/builds/worker/fetches/sysroot -fPIC -fPIC -Qunused-arguments -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections  -Wl,--version-script,"/builds/worker/fetches/llvm-project/build/stage3/build/tools/clang/lib/Analysis/plugins/SampleAnalyzer/SampleAnalyzerPlugin.exports" -shared  -o lib/SampleAnalyzerPlugin.so tools/clang/lib/Analysis/plugins/SampleAnalyzer/CMakeFiles/SampleAnalyzerPlugin.dir/MainCallChecker.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/builds/worker/fetches/llvm-project/build/stage3/build/lib"  lib/libclang-cpp.so.18git  lib/libLLVM-18git.so && :
FAILED: lib/SampleAnalyzerPlugin.so 
: && /builds/worker/fetches/llvm-project/build/stage2/clang/bin/clang++ --sysroot=/builds/worker/fetches/sysroot -fPIC -fPIC -Qunused-arguments -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections  -Wl,--version-script,"/builds/worker/fetches/llvm-project/build/stage3/build/tools/clang/lib/Analysis/plugins/SampleAnalyzer/SampleAnalyzerPlugin.exports" -shared  -o lib/SampleAnalyzerPlugin.so tools/clang/lib/Analysis/plugins/SampleAnalyzer/CMakeFiles/SampleAnalyzerPlugin.dir/MainCallChecker.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/builds/worker/fetches/llvm-project/build/stage3/build/lib"  lib/libclang-cpp.so.18git  lib/libLLVM-18git.so && :
ld.lld: error: corrupt input file: version definition index 2 for symbol _end is out of bounds
>>> defined in lib/libclang-cpp.so.18git

ld.lld: error: corrupt input file: version definition index 2 for symbol __bss_start is out of bounds
>>> defined in lib/libclang-cpp.so.18git

ld.lld: error: corrupt input file: version definition index 2 for symbol _edata is out of bounds
>>> defined in lib/libclang-cpp.so.18git
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```

https://github.com/llvm/llvm-project/pull/72208


More information about the llvm-commits mailing list