[lld-macho] Fix bugs around EH_Frame symbols
While extending the map file to cover unwind info, I realized we had two issues with our EH_Frame symbols: 1. Their size was not set 2. We would create two EH_Frame symbols per frame when we only needed one. This was because the Defined constructor would add the symbol itself to InputSection::symbols, but we were also manually appending the symbol to that same vector. Note that ld64 prints "CIE" and "FDE for: <function>" instead of just "EH_Frame", but I'm punting on that for now unless we discover that users really depend upon it. Reviewed By: #lld-macho, Roger Differential Revision: https://reviews.llvm.org/D137370
Loading
Please sign in to comment