]> granicus.if.org Git - llvm/commit
[XCOFF] Output object text section header and symbol entry for program code.
authorDigger Lin <digger.llvm@gmail.com>
Tue, 15 Oct 2019 17:40:41 +0000 (17:40 +0000)
committerDigger Lin <digger.llvm@gmail.com>
Tue, 15 Oct 2019 17:40:41 +0000 (17:40 +0000)
commitb62ebb253e823367de4da4c1e17bfd531554d01e
treef14fbd7894a8f4e43af4d46039dc2ac3030d43d8
parentc345de274488a83fbc77806c1ae202050df5f1d5
[XCOFF] Output object text section header and symbol entry for program code.

This is remaining part of  rG41ca91f2995b: [AIX][XCOFF] Output XCOFF
object text section header and symbol entry for rogram code.

SUMMARY:
Original form of this patch is provided by Stefan Pintillie.

1. The patch try to output program code section header , symbol entry for
 program code (PR) and Instruction into the raw text section.
2. The patch include how to alignment and layout the CSection in the text
 section.
3. The patch also reorganize the code , put some codes into a function.
 (XCOFFObjectWriter::writeSymbolTableEntryForControlSection)

Additional: We can not add raw data of text section test in the patch, If want
 to output raw text section data,it need a function description patch first.

Reviewers: hubert.reinterpretcast, sfertile, jasonliu, xingxue.
Subscribers: wuzish, nemanjai, hiraditya, MaskRay, jsjji.

Differential Revision: https://reviews.llvm.org/D66969

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374923 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCSectionXCOFF.h
lib/MC/MCXCOFFStreamer.cpp
lib/MC/XCOFFObjectWriter.cpp
test/CodeGen/PowerPC/aix-xcoff-common.ll
test/CodeGen/PowerPC/aix-xcoff-lcomm.ll