This is an archive of the discontinued LLVM Phabricator instance.

Generalize SHF_LINK_ORDER to user defined sections
ClosedPublic

Authored by rafael on Feb 6 2017, 10:05 AM.

Details

Reviewers
ruiu
eugenis
rnk
Summary

The discussion about gcing metadata sections at generic-abi@googlegroups.com currently favours having a section flag that would indicate that a one section contains metadata to the section linked to via .sh_link. There is also the desire to reuse SHF_LINK_ORDER and rename it.

This patch implements that idea while still using the SHF_LINK_ORDER name. This is a valid extension of SHF_LINK_ORDER is used for.

Diff Detail

Event Timeline

rafael created this revision.Feb 6 2017, 10:05 AM
rnk edited edge metadata.Feb 6 2017, 10:32 AM

lgtm

lld/ELF/MarkLive.cpp
170

Do we already have the dependency from the associated section? It looks like LLD has some logic for it, but I can't tell if it's enough.

Rui, are you OK with this?

ruiu accepted this revision.Feb 8 2017, 11:47 AM

LGTM

This revision is now accepted and ready to land.Feb 8 2017, 11:47 AM
espindola closed this revision.Mar 14 2018, 4:20 PM
espindola added a subscriber: espindola.

294592