| Issue |
109723
|
| Summary |
BOLT --update-debug-sections causes infinite loop when processing binaries generated with dwarf5 and compressed debug section
|
| Labels |
BOLT
|
| Assignees |
|
| Reporter |
yabinc
|
The binary is generated with -fdebug-default-version=5 and --compress-debug-sections=zstd.
The reproduce cmdline is: llvm-bolt libart.so -o=libart_bolt.so --data libart.bolt --reorder-blocks=ext-tsp --reorder-functions=cdsort --split-functions --split-strategy=profile2 --update-debug-sections --dyno-stats
The output is:
BOLT-ERROR: could not extract string from .debug_line_strBOLT-ERROR: could not extract strin'g from .debug_line_strBOLT-ERROR: could not extract string from .debug_line_strBOLT-ERROR: could not extract string from .debug_line_strBOLT-ERROR: could not extract string from .debug_line_strBOLT-ERROR: could not extract string from .debug_line_str
The libart.so can be constructed by the following cmds:
unzip libart_part1.zip
unzip libart_part2.zip
unzip libart_part3.zip
dd if=libart.so.part1 of=libart.so bs=28347826 count=1
dd if=libart.so.part2 of=libart.so bs=28347826 count=1 seek=1
dd if=libart.so.part3 of=libart.so bs=56695652 count=1 seek=1`
[libart_part1.zip](https://github.com/user-attachments/files/17104898/libart_part1.zip)
[libart_part2.zip](https://github.com/user-attachments/files/17104900/libart_part2.zip)
[libart_part3.zip](https://github.com/user-attachments/files/17104903/libart_part3.zip)
[libart_bolt.zip](https://github.com/user-attachments/files/17104905/libart_bolt.zip)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs