Closed GoogleCodeExporter closed 9 years ago
Hi, H.J.,
I will support weak alias by treating the alias symbols as indirect symbols.
MCLinker's StaticResolver can resolve indirect symbols. Trent and Diana will
implement the rest parts.
The test case is really solid. It helps me to explain the behavior of weak
alias to the other team members.
Big thanks,
Luba
Original comment by LubaTang
on 20 Feb 2013 at 10:45
Hi HJ,
I've added alias support for X86 in MCLinker. You can check rev. 1f697 to see
it. I've tested and passed both cases you gave.
However, since we perform alias analysis when reading symbols in ELFReader, we
currently may not accurately gather some overriding information for analysis
due to the limitation of the MCLinker architecture (e.g. whether the processing
symbol can override the previous one and become a potential alias).
That affects the alias analysis accuracy. This only affects cases when two
dynamic objects (.so) have the same alias names.
We decided to refactor the architecture instead of hacking it and making code
dirty. So, I will fix the issue after Luba refactors the architecture.
Original comment by lo.chenk...@gmail.com
on 27 Mar 2013 at 3:50
I checked a patch to enable x86 weak alias test. Thanks.
Original comment by hjl.to...@gmail.com
on 27 Mar 2013 at 5:18
Original comment by pete.c...@gmail.com
on 5 Sep 2013 at 3:20
Original issue reported on code.google.com by
hjl.to...@gmail.com
on 11 Feb 2013 at 6:27