mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
tests: tcg: Fix PVH test with binutils 2.36+
binutils started adding a .note.gnu.property ELF section which
makes the PVH test fail:
TEST hello on x86_64
qemu-system-x86_64: Error loading uncompressed kernel without PVH ELF Note
Discard .note.gnu* while keeping the PVH .note bits intact.
This also strips the build-id note, so drop the related comment.
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Message-Id: <5ab2a54c262c61f64c22dbb49ade3e2db8a740bb.1633708346.git.crobinso@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 8e751e9c38
)
Signed-off-by: Michael Roth <michael.roth@amd.com>
This commit is contained in:
committed by
Michael Roth
parent
711bd602cc
commit
fddd169de5
@ -16,7 +16,10 @@ SECTIONS {
|
|||||||
*(.rodata)
|
*(.rodata)
|
||||||
} :text
|
} :text
|
||||||
|
|
||||||
/* Keep build ID and PVH notes in same section */
|
/DISCARD/ : {
|
||||||
|
*(.note.gnu*)
|
||||||
|
}
|
||||||
|
|
||||||
.notes : {
|
.notes : {
|
||||||
*(.note.*)
|
*(.note.*)
|
||||||
} :note
|
} :note
|
||||||
|
Reference in New Issue
Block a user