[lld-macho] Filter TAPI re-exports by targetPreviously, we were loading re-exports without checking whetherthey were compatible with our target. Prior to {D97209}, it meant thatwe were defining d
[lld-macho] Filter TAPI re-exports by targetPreviously, we were loading re-exports without checking whetherthey were compatible with our target. Prior to {D97209}, it meant thatwe were defining dylib symbols that were invalid -- usually a silentfailure unless our binary actually used them. D97209 exposed this as anexplicit error.Along the way, I've extended our TAPI compatibility check to cover theplatform as well, instead of just checking the arch. To this end, I'vereplaced MachO::Architecture with MachO::Target in our Config struct.Reviewed By: #lld-macho, oontvooDifferential Revision: https://reviews.llvm.org/D97867
show more ...
[lld-macho] Check for arch compatibility when loading ObjFiles and TBDsThe silent failures had confused me a few times.I haven't added a similar check for platform yet as we don't yet have logic
[lld-macho] Check for arch compatibility when loading ObjFiles and TBDsThe silent failures had confused me a few times.I haven't added a similar check for platform yet as we don't yet have logic toinfer the platform automatically, and so adding that check would requireupdating dozens of test files.Reviewed By: #lld-macho, thakis, alexshapDifferential Revision: https://reviews.llvm.org/D97209