[lld] [LLD] Make lld define __eh_frame_* symbols (PR #162638)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 9 08:12:43 PDT 2025


================
@@ -2269,6 +2269,12 @@ template <class ELFT> void Writer<ELFT>::addStartEndSymbols() {
   define("__preinit_array_start", "__preinit_array_end", ctx.out.preinitArray);
   define("__init_array_start", "__init_array_end", ctx.out.initArray);
   define("__fini_array_start", "__fini_array_end", ctx.out.finiArray);
+  // Define __eh_frame_* symbols, libunwind needs these symbols.
----------------
smithp35 wrote:

Yes, just below on line 2281. I think I added that before we had good linker script support, could also be that some unwinders even on Linux might use those symbols.

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


More information about the llvm-commits mailing list