我要评分
获取效率
正确性
完整性
易理解

An Early Binutils Library Version Resulting in a Linker Error in the debug_info Section

Error Information

1
unable to initializedecompress status for section .debug_info 

Problem

When the system runs on CentOS 7.6 or Ubuntu 18.04 in the x86_64 environment, if the default binutils version is earlier than 2.32, the binutils of an earlier version incorrectly aligns the debugging information section. As a result, a linker error exists in the debug_info section generated by binutils of a version later than 2.32.

Solution

1. Use the -fuse-ld=lld option to specify a linker provided by BiSheng compiler.

2. If the GNU linker is still required, upgrade the system linker to a version later than 2.32.