[gdb] Reading symbols from clang takes extremely long time

When using gdb to debug clang built from the latest trunk code, it obviously takes longer time to read symbols than before(an intermediate dev point between llvm14 and llvm15), approximately 2m vs 10s. Has anyone encountered the same issue?

Sorry, I found out it’s because the old version is built with gold and -Wl,--gdb-index -Wl,--compress-debug-sections=zlib is used to compress debug sections.