Local symbols can have the same name. I ran into this with JITLink
while working with an object file that had been run through strip -S
that had many "func.eh" symbols, but it can also happen using ld -r.
rdar://85352156
| Paths 
 |  Differential  D114042  
[JITLink] Allow duplicate symbol names for locals ClosedPublic Authored by benlangmuir on Nov 16 2021, 4:19 PM. 
Details 
 Summary Local symbols can have the same name. I ran into this with JITLink rdar://85352156 
Diff Detail Event Timelinebenlangmuir created this revision. This revision is now accepted and ready to land.Nov 16 2021, 5:02 PM Closed by commit rG5273773580f6: [JITLink] Allow duplicate symbol names for locals (authored by benlangmuir).  ·  Explain WhyNov 17 2021, 9:32 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 387782 llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
 llvm/test/ExecutionEngine/JITLink/X86/MachO-duplicate-local.test
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||