[PATCH] D123874: [Clang][IA] support -generate-unused-section-symbols={yes|no}
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 15 13:33:36 PDT 2022
nickdesaulniers created this revision.
nickdesaulniers added a reviewer: MaskRay.
Herald added subscribers: StephenFan, dexonsmith, hiraditya.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.
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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123874
Files:
clang/include/clang/Basic/CodeGenOptions.def
clang/include/clang/Driver/Options.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/as-options.s
clang/test/Misc/cc1as-keep-section-symbols.s
clang/tools/driver/cc1as_main.cpp
llvm/include/llvm/MC/MCAsmInfo.h
llvm/lib/MC/ELFObjectWriter.cpp
llvm/test/MC/X86/keep-section-symbols.s
llvm/tools/llvm-mc/llvm-mc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123874.423159.patch
Type: text/x-patch
Size: 7485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220415/c0391687/attachment.bin>
More information about the llvm-commits
mailing list