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.
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.