[libc] [lld] [clang] [libunwind] [compiler-rt] [flang] [lldb] [openmp] [libcxx] [mlir] [llvm] [pstl] [clang-tools-extra] [ELF] Don't resolve relocations referencing SHN_ABS to tombstone in non-SHF_ALLOC sections (PR #79238)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 08:53:17 PST 2024
MaskRay wrote:
Fixed a typo and added an example
> ```
> // clang -g
> __attribute__((weak)) int symbol;
> int *foo() { return &symbol; }
>
> 0x00000023: DW_TAG_variable [2] (0x0000000c)
> ...
> DW_AT_location [DW_FORM_exprloc] (DW_OP_addrx 0x0)
> ```
>
>
> .debug_addr references `symbol`, which can be redefined by a symbol
> assignment or --defsym to become a SHN_ABS symbol.
https://github.com/llvm/llvm-project/pull/79238
More information about the cfe-commits
mailing list