commit | 416cb77e36e6098171546095ae9dab4f78931303 | [log] [tgz] |
---|---|---|
author | Jordan Rupprecht <rupprecht@google.com> | Tue Jan 15 16:57:23 2019 +0000 |
committer | Jordan Rupprecht <rupprecht@google.com> | Tue Jan 15 16:57:23 2019 +0000 |
tree | 1b0348cd7ed31b7351cafbd18f80bf369cb20002 | |
parent | b8f7485f8717a784a7d84f7111ebfb76fecb4320 [diff] |
[llvm-objcopy] Use SHT_NOTE for added note sections. Summary: Fix llvm-objcopy to add .note sections as SHT_NOTEs. GNU objcopy overrides section flags for special sections. For `.note` sections (with the exception of `.note.GNU-stack`), SHT_NOTE is used. Many other sections are special cased by libbfd, but `.note` is the only special section I can seem to find being used with objcopy --add-section. See `.note` in context of the full list of special sections here: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/elf.c;h=eb3e1828e9c651678b95a1dcbc3b124783d1d2be;hb=HEAD#l2675 Reviewers: jhenderson, alexshap, jakehehrlich, espindola Reviewed By: jhenderson Subscribers: emaste, arichardson, llvm-commits Differential Revision: https://reviews.llvm.org/D56570 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351204 91177308-0d34-0410-b5e6-96231b3b80d8