[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 15 01:47:05 PDT 2025
================
@@ -62,6 +62,8 @@ def memtag : FF<"memtag", "Display memory tagging metadata (modes, Android notes
def needed_libs : FF<"needed-libs", "Display the needed libraries">, Group<grp_elf>;
def notes : FF<"notes", "Display notes">, Group<grp_elf>;
def program_headers : FF<"program-headers", "Display program headers">, Group<grp_elf>;
+def sframe_EQ : Joined<["--"], "sframe=">, HelpText<"Display SFrame section <name>">, MetaVarName<"<name>">, Group<grp_elf>;
+def sframe: FF<"sframe", "Alias for --sframe=.sframe">, Alias<sframe_EQ>, AliasArgs<[".sframe"]>, Group<grp_elf>;
----------------
jh7370 wrote:
If there's a section type that is used going forward, perhaps we should not do this as an alias for that name and instead have the "default" behaviour for the option be to dump all sections with the corresponding type? If people want to dump the default sframe section from older objects, they can still manually specify the name then.
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list