[all-commits] [llvm/llvm-project] 018a9e: [ORC] Define `LLVM_HAS_ATTRIBUTE_WEAK` and guard `...

Tomohiro Kashiwada via All-commits all-commits at lists.llvm.org
Thu Oct 1 03:28:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 018a9e4a74ba5d383351bda907a8b116bc5d8c47
      https://github.com/llvm/llvm-project/commit/018a9e4a74ba5d383351bda907a8b116bc5d8c47
  Author: Tomohiro Kashiwada <kikairoya at gmail.com>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M llvm/include/llvm/Support/Compiler.h
    M llvm/lib/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp

  Log Message:
  -----------
  [ORC] Define `LLVM_HAS_ATTRIBUTE_WEAK` and guard `__unw_*_dynamic_eh_frame_section` by it (#227709)

#212260 causes a linker error on Cygwin, which expands
`LLVM_ATTRIBUTE_WEAK` to empty:
```
    ld.lld: error: undefined symbol: __unw_add_dynamic_eh_frame_section
    >>> referenced by libLLVMOrcTargetProcess.a(RegisterEHFrames.cpp.o):(llvm::orc::registerEHFrameSection(void const*, unsigned long))
    >>> referenced by libLLVMOrcTargetProcess.a(RegisterEHFrames.cpp.o):(registerEHFrameWrapper(llvm::orc::ExecutorAddrRange))
```

---------

Co-authored-by: Lang Hames <lhames at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list