This is an archive of the discontinued LLVM Phabricator instance.

Fix PR28575
ClosedPublic

Authored by rafael on Jul 21 2016, 7:07 AM.

Details

Reviewers
ruiu
Summary

Not all relocations from a .eh_frame that point to an executable
section should be ignored. In particular, the relocation finding the
personality function should not.

This is a reduction from trying to bootstrap a static lld on linux.

Diff Detail

Event Timeline

rafael updated this revision to Diff 64880.Jul 21 2016, 7:07 AM
rafael retitled this revision from to Fix PR28575.
rafael updated this object.
rafael added a reviewer: ruiu.
rafael added a subscriber: llvm-commits.
ruiu added inline comments.Jul 21 2016, 7:24 AM
ELF/MarkLive.cpp
115

I'd rename Fn Enqueue.

ELF/OutputSections.cpp
1032

You don't need to pas FirstRelI as a separate parameter because you can use Piece->FirstRelocation instead.

1041

Ditto.

rafael updated this revision to Diff 64890.Jul 21 2016, 7:38 AM

Address review comments

ruiu accepted this revision.Jul 21 2016, 12:36 PM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 21 2016, 12:36 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in r276329.