[PATCH] D109566: [yaml2obj][XCOFF] add the SectionIndex field for symbol.

Esme Yi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 12 00:38:49 PDT 2021


Esme updated this revision to Diff 372108.
Esme retitled this revision from "[yaml2obj][XCOFF] write an invalid index for an invalid Section name specified in Symbol" to "[yaml2obj][XCOFF] add the SectionIndex field for symbol.".
Esme added a comment.

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.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109566/new/

https://reviews.llvm.org/D109566

Files:
  llvm/include/llvm/ObjectYAML/XCOFFYAML.h
  llvm/lib/ObjectYAML/XCOFFEmitter.cpp
  llvm/lib/ObjectYAML/XCOFFYAML.cpp
  llvm/test/tools/yaml2obj/XCOFF/symbol-section.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109566.372108.patch
Type: text/x-patch
Size: 5020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210912/7869daec/attachment.bin>


More information about the llvm-commits mailing list