Skip to content

Commit 8e751e9

Browse files
crobinsobonzini
authored andcommitted
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 <[email protected]> Message-Id: <5ab2a54c262c61f64c22dbb49ade3e2db8a740bb.1633708346.git.crobinso@redhat.com> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f1279fc commit 8e751e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/tcg/x86_64/system/kernel.ld

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ SECTIONS {
1616
*(.rodata)
1717
} :text
1818

19-
/* Keep build ID and PVH notes in same section */
19+
/DISCARD/ : {
20+
*(.note.gnu*)
21+
}
22+
2023
.notes : {
2124
*(.note.*)
2225
} :note

0 commit comments

Comments
 (0)