diff options
| author | Thomas Köppe <tkoeppe@google.com> | 2023-07-25 09:34:54 -0700 |
|---|---|---|
| committer | Arthur Eubanks <aeubanks@google.com> | 2023-07-25 09:47:02 -0700 |
| commit | 6f1395a1fef5533a5a8dfdb8621eab7de3922cc3 (patch) | |
| tree | 4cbee2f31f9a539f4b8d3042d762464ca669d81d /llvm/docs/CommandGuide/llvm-objcopy.rst | |
| parent | 81b193f51bb488f41339b618c6757370be0688a4 (diff) | |
[llvm-objcopy] --set-section-flags: allow "large" to add SHF_X86_64_LARGE
Currently, objcopy cannot set the new flag SHF_X86_64_LARGE. This change introduces the named flag "large" which translates to that section flag.
An "invalid argument" error is produced if a user attempts to set the flag on an architecture other than X86_64.
Reviewed By: jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D153262
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-objcopy.rst')
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index 8894a7fea6bb..0233a4f7b2f0 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -137,8 +137,9 @@ multiple file formats. sections. Supported flag names are `alloc`, `load`, `noload`, `readonly`, `exclude`, - `debug`, `code`, `data`, `rom`, `share`, `contents`, `merge` and `strings`. Not - all flags are meaningful for all object file formats. + `debug`, `code`, `data`, `rom`, `share`, `contents`, `merge`, `strings`, and + `large`. Not all flags are meaningful for all object file formats or target + architectures. For ELF objects, the flags have the following effects: @@ -152,6 +153,8 @@ multiple file formats. - `strings` = add the `SHF_STRINGS` flag. - `contents` = if the section has `SHT_NOBITS` type, mark it as a `SHT_PROGBITS` section. + - `large` = add the `SHF_X86_64_LARGE` on x86_64; rejected if the target + architecture is not x86_64. For COFF objects, the flags have the following effects: |
