[all-commits] [llvm/llvm-project] 028a26: [XCOFF] FixupOffsetInCsect should be 0 for R_REF r...
Esme via All-commits
all-commits at lists.llvm.org
Wed Jun 14 22:34:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 028a261350baf734db20a65b413ee07d7d4f7b1b
https://github.com/llvm/llvm-project/commit/028a261350baf734db20a65b413ee07d7d4f7b1b
Author: esmeyi <esme.yi at ibm.com>
Date: 2023-06-15 (Thu, 15 Jun 2023)
Changed paths:
M llvm/lib/MC/XCOFFObjectWriter.cpp
M llvm/test/CodeGen/PowerPC/pgo-ref-directive.ll
Log Message:
-----------
[XCOFF] FixupOffsetInCsect should be 0 for R_REF relocation.
Summary: The FixupOffsetInCsect should be 0 for R_REF relocation since it specifies a nonrelocating reference. Otherwise liker would try to relocate the symbol through its address and an error like following occurred.
```
ld: 0711-547 SEVERE ERROR: Object /tmp/1-2a7ea1.o cannot be processed.
RLD address 0x65 for section 2 (.data) is
not contained in the section.
```
Reviewed By: shchenz
Differential Revision: https://reviews.llvm.org/D152777
More information about the All-commits
mailing list