This is an archive of the discontinued LLVM Phabricator instance.

[XCOFF] FixupOffsetInCsect should be 0 for R_REF relocation.
ClosedPublic

Authored by Esme on Jun 12 2023, 10:54 PM.

Details

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.

Diff Detail

Event Timeline

Esme created this revision.Jun 12 2023, 10:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 10:54 PM
Esme requested review of this revision.Jun 12 2023, 10:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 12 2023, 10:54 PM
shchenz accepted this revision as: shchenz.Jun 13 2023, 1:55 AM

LGTM. Thanks for addressing the bug.

This revision is now accepted and ready to land.Jun 13 2023, 1:55 AM
This revision was automatically updated to reflect the committed changes.