diff options
| author | James Henderson <jh7370@my.bristol.ac.uk> | 2019-10-31 11:53:33 +0000 |
|---|---|---|
| committer | James Henderson <jh7370@my.bristol.ac.uk> | 2019-10-31 11:57:19 +0000 |
| commit | fb4a55010ee9bd03720609c8542f770775576fc8 (patch) | |
| tree | 5d2ec2a068f0ba2234d77b74301cf984c3971c45 /llvm/docs/CommandGuide | |
| parent | 07255f81fa6798fcfe5d2e72656fc3fb8fc9416a (diff) | |
| download | bcm5719-llvm-fb4a55010ee9bd03720609c8542f770775576fc8.tar.gz bcm5719-llvm-fb4a55010ee9bd03720609c8542f770775576fc8.zip | |
[llvm-objcopy] Preserve .ARM.attributes section when stripping files
This works around a bug in Debian's patchset for glibc. The bug is
described in detail in the upstream debian bug:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=943798, but the short
version of it is that glibc on any Debian based distro don't load
libraries unless it has a .ARM.attribute section.
Reviewed by: jhenderson, rupprecht, MaskRay, jakehehrlich
Differential Revision: https://reviews.llvm.org/D69188
Patch by Tobias Hieta.
Diffstat (limited to 'llvm/docs/CommandGuide')
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 3 | ||||
| -rw-r--r-- | llvm/docs/CommandGuide/llvm-strip.rst | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index 3848e88fb85..f4211069fd8 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -98,7 +98,8 @@ multiple file formats. .. option:: --strip-all, -S For ELF objects, remove from the output all symbols and non-alloc sections not - within segments, except for .gnu.warning sections and the section name table. + within segments, except for .gnu.warning, .ARM.attribute sections and the + section name table. For COFF and Mach-O objects, remove all symbols, debug sections, and relocations from the output. diff --git a/llvm/docs/CommandGuide/llvm-strip.rst b/llvm/docs/CommandGuide/llvm-strip.rst index e1f07d9a76f..0e95996310d 100644 --- a/llvm/docs/CommandGuide/llvm-strip.rst +++ b/llvm/docs/CommandGuide/llvm-strip.rst @@ -77,7 +77,8 @@ multiple file formats. .. option:: --strip-all, -S For ELF objects, remove from the output all symbols and non-alloc sections not - within segments, except for .gnu.warning sections and the section name table. + within segments, except for .gnu.warning, .ARM.attribute sections and the + section name table. For COFF objects, remove all symbols, debug sections, and relocations from the output. |

