send2vinnie / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

rewrite EhFrame #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by LubaTang on 1 Oct 2012 at 2:48

GoogleCodeExporter commented 9 years ago

Original comment by LubaTang on 26 Nov 2012 at 4:49