[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:11 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
+# RUN: lldb-test symbols %t.dll | FileCheck %s
+
+# Test that relocatable PE/COFF binaries (like DLLs and UEFI drivers) with PDB
+# symbols can be loaded. These binaries return LLDB_INVALID_ADDRESS for
+# GetFileAddress() and should use 0x0 as the base to allow RVA-based symbol
+# loading.
+
+# CHECK: Module: {{.*}}.dll
+# CHECK: Function{{{.*}}}, extern "C" name = "relocatable_function"
----------------
Nerixyz wrote:

```suggestion
# CHECK: Function{{{.*}}}, demangled = relocatable_function
```

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


More information about the lldb-commits mailing list