diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -338,7 +338,7 @@ Keep symbols of type `STT_FILE`, even if they would otherwise be stripped. -.. option:: --keep-global-symbol +.. option:: --keep-global-symbol , -G Make all symbols local in the output, except for symbols with the name ````. Can be specified multiple times to ignore multiple symbols. diff --git a/llvm/tools/llvm-objcopy/ObjcopyOpts.td b/llvm/tools/llvm-objcopy/ObjcopyOpts.td --- a/llvm/tools/llvm-objcopy/ObjcopyOpts.td +++ b/llvm/tools/llvm-objcopy/ObjcopyOpts.td @@ -50,7 +50,8 @@ : Eq<"rename-section", "Renames a section from old to new, optionally with specified flags. " "Flags supported for GNU compatibility: alloc, load, noload, " - "readonly, debug, code, data, rom, share, contents, merge, strings.">, + "readonly, exclude, debug, code, data, rom, share, contents, merge, " + "strings.">, MetaVarName<"old=new[,flag1,...]">; defm redefine_symbol : Eq<"redefine-sym", "Change the name of a symbol old to new">, @@ -82,8 +83,8 @@ defm set_section_flags : Eq<"set-section-flags", "Set section flags for a given section. Flags supported for GNU " - "compatibility: alloc, load, noload, readonly, debug, code, data, " - "rom, share, contents, merge, strings.">, + "compatibility: alloc, load, noload, readonly, exclude, debug, code, " + "data, rom, share, contents, merge, strings.">, MetaVarName<"section=flag1[,flag2,...]">; def S : Flag<["-"], "S">,