When I compile a binary with the clang compiler shipped in my distro, then read the ELF headers of said binary with readelf -p .comment <path>, it shows me multiple compilers in the comment section:
String dump of section '.comment':
[ 0] GCC: (GNU) 7.3.0
[ 11] GCC: (GNU) 10.3.0
[ 23] clang version 13.0.0
I expected it to show the clang version, but why are there also comments about gcc, and different versions non the less?