GNU binutils has added support for explicitly retaining (yes option) or
dropping (no option) STT_SECTION symbols from the symbols table via
assembler option -generate-unused-section-symbols={yes|no}.
Add support to clang (-Wa,-generate-unused-section-symbols={yes|no})
and llvm-mc.
This feature might be used by the Linux kernel.
https://lore.kernel.org/linux-toolchains/YllUqPK4CWZeHku8@hirez.programming.kicks-ass.net/
This has been supported by GNU binutils since 2.36.
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=d1bcae833b32f1408485ce69f844dcd7ded093a8