MCContext

Reference include/llvm/MC/MCContext.h lib/MC/MCContext.cpp

Context object for machine code objects. This class owns all the sections that it creates.

  • MCSectionELF *MCContext::getELFSection()

    • Search ELFUniquingMap
    • return if hit
    • create new section using createELFSectionImp() if miss.
  • MCSectionELF *MCContext::createELFSectionImpl()

    • get existing or create a new MCSymbolELF *R
    • set binding ELF::STB_LOCAL
    • set type ELF::STT_SECTION
    • create a new MCSectionELF *Ret
    • create new MCDataFragment() *F
    • insert F to Ret->getFragmentList()
    • F->setParent(Ret)
    • R->setFragment(F)
    • return R, the MCSectionELF
Created Jul 17, 2020 // Last Updated Jul 17, 2020

If you could revise
the fundmental principles of
computer system design
to improve security...

... what would you change?