<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64918>64918</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
dsymutil generate corrupted .dSYM containing invalid debug_abbrev section when thin-lto enabled
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
apawn
</td>
</tr>
</table>
<pre>
We are building a downstream product of Chromium m109 by integrating our logic and keeping the build toolchain and compile&link arguments unchanged.
As developing, the .dSYM size keeps growing and exceeds 6.4 GB, and it causes a problem. the generated DWARF has some corrupted sections, when we use` dwarfdump --verify Chrome Framework` to try to verify, it prompts
<img width="970" alt="image" src="https://github.com/llvm/llvm-project/assets/13815338/96180579-92f4-470e-b332-cf1781d19259">
Check the code in the abbrev section with machoview, it shows weird:
![image](https://github.com/llvm/llvm-project/assets/13815338/2a683ef5-8fce-4b06-b33d-890675203db8)
this doesn't look like a correct abbrev section, which has increased index like 01, 00 00 02, 00 00 03.
we have tried tons of ways to address it, but it doesn't work, it only failed on the Chrome Framework.dylib.dSYM other than others dylibs , it might be Chrome Framework has a giant amount of compile units. I couldn't reproduce it at a minimum example.
dsymutil version:
<img width="526" alt="image" src="https://github.com/llvm/llvm-project/assets/13815338/ef1ab869-12a7-438e-b707-6205c7184ef7">
clang version
<img width="1148" alt="image" src="https://github.com/llvm/llvm-project/assets/13815338/3f45cd18-2a14-421c-9ad4-67b7d06386f7">
the link arguments:
<img width="2560" alt="image" src="https://github.com/llvm/llvm-project/assets/13815338/b97bfc29-3bdf-45ea-8c47-bbc738e69610">
<img width="2530" alt="image" src="https://github.com/llvm/llvm-project/assets/13815338/eaff91c8-f25f-4287-83c2-19d3cfa85932">
i really appreciate it
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8Vktv5LwR_DWaS0MDitTzMAevnQlyyCU5LHIKmmRLYkyRA5Kydv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