mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 23:11:32 +02:00
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>
This commit is contained in:
@@ -221,6 +221,9 @@ SECTIONS
|
|||||||
.empty : {
|
.empty : {
|
||||||
*(.empty)
|
*(.empty)
|
||||||
} :empty
|
} :empty
|
||||||
|
/DISCARD/ : {
|
||||||
|
*(.note.gnu.property)
|
||||||
|
}
|
||||||
.note : {
|
.note : {
|
||||||
*(.comment)
|
*(.comment)
|
||||||
} :note
|
} :note
|
||||||
|
@@ -148,7 +148,7 @@ class TestElf(unittest.TestCase):
|
|||||||
expected_text = b'1234'
|
expected_text = b'1234'
|
||||||
expected_data = b'wxyz'
|
expected_data = b'wxyz'
|
||||||
elf_fname = os.path.join(outdir, 'elf')
|
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
|
# Make an Elf file and then convert it to a fkat binary file. This
|
||||||
# should produce the original data.
|
# should produce the original data.
|
||||||
|
Reference in New Issue
Block a user