[PATCH] D97117: [XCOFF] add C_FILE symbol at index 0

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 20 03:50:09 PST 2021


shchenz created this revision.
shchenz added reviewers: hubert.reinterpretcast, jsji, daltenty, ZarkoCA, jasonliu, PowerPC.
Herald added subscribers: arphaman, hiraditya, nemanjai.
shchenz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is for XCOFF DWARF support.

Seems when DWARF debug is enable, symbol 0 has special usage for AIX binder. At least, symbol 0 can not be the `.text` section. Otherwise, we get some binding time error.

Add correct `C_FILE` symbol at index 0 here to make AIX binder work.

Currently, I add no auxiliary entry for `C_FILE` symbol because I can not find any use for it for AIX toolchains.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D97117

Files:
  llvm/lib/MC/XCOFFObjectWriter.cpp
  llvm/test/CodeGen/PowerPC/aix-extern-weak.ll
  llvm/test/CodeGen/PowerPC/aix-extern.ll
  llvm/test/CodeGen/PowerPC/aix-func-dsc-gen.ll
  llvm/test/CodeGen/PowerPC/aix-llvm-intrinsic.ll
  llvm/test/CodeGen/PowerPC/aix-overflow-toc.py
  llvm/test/CodeGen/PowerPC/aix-user-defined-memcpy.ll
  llvm/test/CodeGen/PowerPC/aix-weak.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-data-sections.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-explicit-section.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-lcomm.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-reloc.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-symbol-rename.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97117.325184.patch
Type: text/x-patch
Size: 35519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210220/a61ce357/attachment.bin>


More information about the llvm-commits mailing list