[all-commits] [llvm/llvm-project] b98c3e: [yaml2obj][XCOFF] add the SectionIndex field for s...

Esme via All-commits all-commits at lists.llvm.org
Mon Sep 13 23:18:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b98c3e957f564d1101c1fe1522686c7d0a9a9ddb
      https://github.com/llvm/llvm-project/commit/b98c3e957f564d1101c1fe1522686c7d0a9a9ddb
  Author: Esme-Yi <esme.yi at ibm.com>
  Date:   2021-09-14 (Tue, 14 Sep 2021)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/XCOFFYAML.h
    M llvm/lib/Object/XCOFFObjectFile.cpp
    M llvm/lib/ObjectYAML/XCOFFEmitter.cpp
    M llvm/lib/ObjectYAML/XCOFFYAML.cpp
    A llvm/test/tools/yaml2obj/XCOFF/symbol-section.yaml

  Log Message:
  -----------
  [yaml2obj][XCOFF] add the SectionIndex field for symbol.

Summary: Add the SectionIndex field for symbol.
1: a symbol can reference a section by SectionName or SectionIndex.
2: a symbol can reference a section by both SectionName and SectionIndex.
3: if both Section and SectionIndex are specified, but the two values refer
   to different sections, an error will be reported.
4: an invalid SectionIndex is allowed.
5: if a symbol references a non-existent section by SectionName, an error will be reported.

Reviewed By: jhenderson, Higuoxing

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




More information about the All-commits mailing list