[PATCH] D107955: [ELF] Use SHF_SUNW_NODISCARD instead of SHF_GNU_RETAIN on Solaris

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 23 06:03:31 PST 2022


jhenderson accepted this revision.
jhenderson added a comment.

LGTM.



================
Comment at: llvm/test/tools/yaml2obj/ELF/retain-section.yaml:46-47
+
+# SOLARIS-GNU-ERR:      error: unknown bit value
+# SOLARIS-GNU-ERR-NEXT:   Flags: [ SHF_GNU_RETAIN ]
+
----------------



================
Comment at: llvm/test/tools/yaml2obj/ELF/retain-section.yaml:46
+
+# SOLARIS-GNU-ERR: error: unknown bit value
+
----------------
ro wrote:
> jhenderson wrote:
> > It would be worth including the context saying which flag is the unknown value.
> Good point indeed.  I've indented the `Flags:` part, matching what `yaml2obj` does.  Is this ok or is the output supposed to be aligned in the testcase?
It doesn't really matter in this case. I'd probably keep the indentation to a minimum - see my inline edit for a suggestion.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107955



More information about the llvm-commits mailing list