summaryrefslogtreecommitdiff
path: root/tools/binman/elf_test.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-24 16:22:45 +0300
committerSimon Glass <sjg@chromium.org>2019-10-15 17:40:02 +0300
commit9d44a7e6c67be9661e6d3dff3a2d5da31dd06cbc (patch)
tree67fff8a49349c67bba4e985e2d80e8722caa3325 /tools/binman/elf_test.py
parent8dbb7444ebaa499b753269c88cdd76f12f0fa875 (diff)
downloadu-boot-9d44a7e6c67be9661e6d3dff3a2d5da31dd06cbc.tar.xz
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_test.py')
-rw-r--r--tools/binman/elf_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/elf_test.py b/tools/binman/elf_test.py
index 416e43baf0..cc6e9c5128 100644
--- a/tools/binman/elf_test.py
+++ b/tools/binman/elf_test.py
@@ -148,7 +148,7 @@ class TestElf(unittest.TestCase):
expected_text = b'1234'
expected_data = b'wxyz'
elf_fname = os.path.join(outdir, 'elf')
- bin_fname = os.path.join(outdir, 'elf')
+ bin_fname = os.path.join(outdir, 'bin')
# Make an Elf file and then convert it to a fkat binary file. This
# should produce the original data.