diff options
author | Jordan Rupprecht <rupprecht@google.com> | 2019-01-15 16:57:23 +0000 |
---|---|---|
committer | Jordan Rupprecht <rupprecht@google.com> | 2019-01-15 16:57:23 +0000 |
commit | 17dd4a2c5e733d17d78e2e5c900f9de42a844578 (patch) | |
tree | 00ff8ff6d1f32dc0b4e0b78104d3127fe1a58bbf /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | b8f08c8d7becc5d5ca3bb347820d67659cf3b693 (diff) | |
download | bcm5719-llvm-17dd4a2c5e733d17d78e2e5c900f9de42a844578.tar.gz bcm5719-llvm-17dd4a2c5e733d17d78e2e5c900f9de42a844578.zip |
[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
llvm-svn: 351204
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions