[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 01:21:08 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>;
----------------
labath wrote:
I guess it would be possible to do something like checking whether the file contains *any* SHT_GNU_SFRAME sections first. If so, then --sframe dumps those -- otherwise we fall back to dumping the section called `.sframe`.
Ideally, I'd let the GNU folks take the lead here. I'd be happy to implement the new behaviour once it has been agreed upon.
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list