[Lldb-commits] [lldb] [lldb][NativePDB] Handle UEFI binaries without predetermined load addresses (PR #173499)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 30 12:46:12 PST 2026
================
@@ -0,0 +1,11 @@
+# REQUIRES: lld, target-windows
+# RUN: %build --compiler=clang-cl --nodefaultlib -fuse-ld=lld -Wl,/dll -Wl,/noentry -o %t.dll %S/Inputs/relocatable.cpp
----------------
Nerixyz wrote:
This currently fails. Unfortunately, we don't have Windows premerge CI, so you'll need to run the test manually.
The build script doesn't accept free arguments. I think you have to manually call clang and lld:
```
# REQUIRES: lld, target-windows, x86
# RUN: %clang_cl --target=x86_64-uefi -Z7 -c /Fo%t.obj -- %S/Inputs/relocatable.cpp
# RUN: lld-link -debug:full -subsystem:efi_application -nodefaultlib -noentry -dll %t.obj -out:%t.dll -pdb:%t.pdb
```
The resulting DLL will load with and without this PR. I'm guessing you already have some setup where you build a UEFI binary. Could you check if that uses some special linker flag?
https://github.com/llvm/llvm-project/pull/173499
More information about the lldb-commits
mailing list