uint64_t EhFrame::readEhFrame(Layout& pLayout,
const TargetLDBackend& pBackend,
SectionData& pSD,
const Input& pInput,
LDSection& pSection,
MemoryArea& pArea)
The algorithm of EhFrame limits the architecture of MCLinker. I have to ask you
guys re-write it.
1. EhFrame should not depend on pInput and MemoryArea. It should depend on
certain kind of fragment.
2. Since TargetLDBackend owns EhFrame, EhFrame should not request
TargetLDBackend. I've revised such kind of design many times. Please remember
the "dependency reversion principle".
3. MCLinker should filter LDSection& pSection, and pass the necessary parameter
to EhFrame. That is, EhFrame should not have LDSection& pSection parameter.
Original issue reported on code.google.com by LubaTang on 6 Aug 2012 at 12:15
Original issue reported on code.google.com by
LubaTang
on 6 Aug 2012 at 12:15