diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-24 07:22:45 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-10-15 08:40:02 -0600 |
commit | 9d44a7e6c67be9661e6d3dff3a2d5da31dd06cbc (patch) | |
tree | 67fff8a49349c67bba4e985e2d80e8722caa3325 /tools/binman/elf.py | |
parent | 8dbb7444ebaa499b753269c88cdd76f12f0fa875 (diff) |
binman: Drop .note section from ELF
Recent versions of binutils add a '.note.gnu.property' into the ELF file.
This is not required and interferes with the expected output. Drop it.
Also fix testMakeElf() to use a different file for input and output.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/binman/elf.py')
-rw-r--r-- | tools/binman/elf.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/binman/elf.py b/tools/binman/elf.py index af40024ceab..c7ef74ce7df 100644 --- a/tools/binman/elf.py +++ b/tools/binman/elf.py @@ -221,6 +221,9 @@ SECTIONS .empty : { *(.empty) } :empty + /DISCARD/ : { + *(.note.gnu.property) + } .note : { *(.comment) } :note |