MaskRay added a comment. > 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/ylluqpk4cwzeh...@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 AFAICT GNU as never gets an option named `-generate-unused-section-symbols=yes`. It just has a quirk that interprets nearly all `-g*` options as `-g`, which indicates generation of some compile units for ELF symbols with the help of `.size` directives. It's very different from generating unused section symbols. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123874/new/ https://reviews.llvm.org/D123874 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits