[PATCH] D88199: Introduce and use a new section type for the bb_addr_map section.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 00:44:19 PDT 2020


rahmanl created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
rahmanl added a reviewer: jhenderson.
rahmanl edited subscribers, added: MaskRay, tmsriram, shenhan, snehasish, amharc; removed: hiraditya.
rahmanl published this revision for review.

This patch lets the bb_addr_map (renamed to llvm_bb_addr_map) section use a special section type (SHT_LLVM_BB_ADDR_MAP) instead of SHT_PROGBITS. This would help linker and other tools to rely on the sh_type ELF field rather than relying on string comparison on the section name.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88199

Files:
  llvm/include/llvm/BinaryFormat/ELF.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/BasicBlockSections.cpp
  llvm/lib/MC/MCObjectFileInfo.cpp
  llvm/lib/MC/MCParser/ELFAsmParser.cpp
  llvm/lib/MC/MCSectionELF.cpp
  llvm/test/CodeGen/X86/basic-block-sections-labels-functions-sections.ll
  llvm/test/CodeGen/X86/basic-block-sections-labels.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88199.293956.patch
Type: text/x-patch
Size: 7175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200924/c6f59f73/attachment.bin>


More information about the llvm-commits mailing list