[PATCH] D113234: Extend obj2yaml to optionally preserve raw __LINKEDIT/__DATA segments.

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 14:25:05 PDT 2021


aprantl added inline comments.


================
Comment at: llvm/tools/obj2yaml/obj2yaml.cpp:27
+             "parsing them:"),
+    cl::values(clEnumVal(data, "__DATA"), clEnumVal(linkedit, "__LINKEDIT")));
+
----------------
alexander-shaposhnikov wrote:
> alexander-shaposhnikov wrote:
> > I'd like just to point out that in general users can specify their one segment names,
> > e.g. via attribute((section("__CUSTOMSEG,__text")), if you use enum here they won't be able to dump them
> > without modifying the tool
> > (Phabricator doesn't like double underscore, the name above is <double underscore>CUSTOMSEG)
> typo: their own
Yeah, I guess if someone wanted to use such a feature, they will have to generalize this further.


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

https://reviews.llvm.org/D113234



More information about the llvm-commits mailing list