Page MenuHomePhabricator

[LLD] Emit dynamic relocations for references to script symbols in -pie links

Authored by bd1976llvm on Apr 30 2019, 2:42 AM.


Summary caused LLD to stop emitting dynamic relocations for references to script symbols in -pie links.

This patch fixes that regression.

Diff Detail

Event Timeline

bd1976llvm created this revision.Apr 30 2019, 2:42 AM

That looks ok to me, IIRC the main problem in D55423 was hitting the cannot refer to absolute symbol error, and this will still avoid that.

grimar accepted this revision.Apr 30 2019, 3:02 AM

LGTM too (with 2 nits).


We normally put # REQUIRES: line first in the test cases. Please put the comment before the CHECK.


I would perhaps check the relocation too.

This revision is now accepted and ready to land.Apr 30 2019, 3:02 AM

Errr. The commit description should be rewritten as:

+    Differential Revision:

to close the revision automatically. BTW, the test had trailing \r (which I have fixed)

grimar closed this revision.May 6 2019, 1:56 AM

Was committed as r359683