[PATCH] D154854: Use empty symbol name for XCOFF text csect
Stephen Peckham via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 08:29:44 PDT 2023
stephenpeckham created this revision.
stephenpeckham added reviewers: hubert.reinterpretcast, jhenderson.
Herald added subscribers: wenlei, hiraditya, nemanjai.
Herald added a project: All.
stephenpeckham requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When generating XCOFF, the compiler generates a csect with an internal name. Each function results in a lable within the csect. This patch replaces the internal name ".text" with an empty string "". This avoids adding special code to handle a function text() in the source file, and works better with some XCOFF tools that are confused when the csect and the first function have the same address.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D154854
Files:
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/CodeGen/PowerPC/aix-alias-alignment-2.ll
llvm/test/CodeGen/PowerPC/aix-alias-alignment.ll
llvm/test/CodeGen/PowerPC/aix-alias.ll
llvm/test/CodeGen/PowerPC/aix-dwarf.ll
llvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-clobber-register.ll
llvm/test/CodeGen/PowerPC/aix-extern-weak.ll
llvm/test/CodeGen/PowerPC/aix-extern.ll
llvm/test/CodeGen/PowerPC/aix-func-align.ll
llvm/test/CodeGen/PowerPC/aix-func-dsc-gen.ll
llvm/test/CodeGen/PowerPC/aix-personality-alias.ll
llvm/test/CodeGen/PowerPC/aix-pgo-function-sections.ll
llvm/test/CodeGen/PowerPC/aix-text.ll
llvm/test/CodeGen/PowerPC/aix-tls-xcoff-reloc-large.ll
llvm/test/CodeGen/PowerPC/aix-tls-xcoff-reloc.ll
llvm/test/CodeGen/PowerPC/aix-tls-xcoff-variables.ll
llvm/test/CodeGen/PowerPC/aix-weak.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-cold.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-funcsect.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-reloc.ll
llvm/test/CodeGen/PowerPC/aix-xcoff-symbol-rename.ll
llvm/test/CodeGen/PowerPC/pgo-ref-directive.ll
llvm/test/CodeGen/PowerPC/test_func_desc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154854.538658.patch
Type: text/x-patch
Size: 22771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230710/5d9b9e08/attachment.bin>
More information about the llvm-commits
mailing list