Allow objcopy's --set-section-flags options to add or remove the SHF_EXCLUDE flag of ELF sections.
* objcopy.c (parse_flags): Handle "exclude". * doc/binutils.texi: Document the support.
This commit is contained in:
parent
46471187e4
commit
3a5d12fbb4
3 changed files with 11 additions and 5 deletions
|
@ -1644,10 +1644,10 @@ Set the flags for any sections matching @var{sectionpattern}. The
|
|||
@var{flags} argument is a comma separated string of flag names. The
|
||||
recognized names are @samp{alloc}, @samp{contents}, @samp{load},
|
||||
@samp{noload}, @samp{readonly}, @samp{code}, @samp{data}, @samp{rom},
|
||||
@samp{share}, and @samp{debug}. You can set the @samp{contents} flag
|
||||
for a section which does not have contents, but it is not meaningful
|
||||
to clear the @samp{contents} flag of a section which does have
|
||||
contents--just remove the section instead. Not all flags are
|
||||
@samp{exclude}, @samp{share}, and @samp{debug}. You can set the
|
||||
@samp{contents} flag for a section which does not have contents, but it
|
||||
is not meaningful to clear the @samp{contents} flag of a section which
|
||||
does have contents--just remove the section instead. Not all flags are
|
||||
meaningful for all object file formats.
|
||||
|
||||
@item --set-section-alignment @var{sectionpattern}=@var{align}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue