This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Move DependentSections vector from InputSection to InputSectionBase
ClosedPublic

Authored by grimar on Feb 17 2017, 2:13 AM.

Details

Summary

I splitted it from D29273.
Since we plan to make relocatable sections as dependent for target ones for
--emit-relocs implementation, this change is required to support .eh_frame case.

EhInputSection inherets from InputSectionBase and not from InputSection.
So for case when it has relocation section, it should be able to access DependentSections
vector.

This case is real for Linux kernel.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Feb 17 2017, 2:13 AM
This revision was automatically updated to reflect the committed changes.