This is an archive of the discontinued LLVM Phabricator instance.

[ELF2] Make the .plt entry size target dependent
ClosedPublic

Authored by hfinkel on Oct 8 2015, 9:53 AM.

Details

Reviewers
ruiu
rafael
Summary

The size of a .plt entry is different on different targets (it is, specifically, much larger than 8 on all PPC ABIs). There is no functional change in this patch (later patches to create .plt entries for PPC64 will depend on this change).

Diff Detail

Event Timeline

hfinkel updated this revision to Diff 36867.Oct 8 2015, 9:53 AM
hfinkel retitled this revision from to [ELF2] Make the .plt entry size target dependent.
hfinkel updated this object.
hfinkel added reviewers: ruiu, rafael.
hfinkel added a project: lld.
hfinkel added a subscriber: llvm-commits.
ruiu accepted this revision.Oct 8 2015, 10:04 AM
ruiu edited edge metadata.

LGTM with a nit.

ELF/Target.h
48

All platforms except PPC set value 8, so I'd set the default value "= 8;" here just like we did for DefaultEntry and remove assignments from all places but PPC.

This revision is now accepted and ready to land.Oct 8 2015, 10:04 AM
hfinkel closed this revision.Oct 8 2015, 2:53 PM
hfinkel marked an inline comment as done.

r249756, thanks!

ELF/Target.h
48

Done.