Skip to content

Commit e16459c

Browse files
Milton Millerozbenh
authored andcommitted
powerpc: Make dummy section a valid note header
We are declaring the dummy section (used to work around a binutils bug) as PT_NOTE, but we don't have enough bytes for it to be a valid note header, and kexec userspace complains: Warning: Elf Note name is not null terminated Warning: append= option is not passed. Using the first kernel root partition Warning: Elf Note name is not null terminated Instead of using the arbitray value 0xf177 (aka "fill"), declare a no-name no-description note of type 0. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent bd1f793 commit e16459c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/powerpc/kernel/vmlinux.lds.S

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ SECTIONS
8787
/* The dummy segment contents for the bug workaround mentioned above
8888
near PHDRS. */
8989
.dummy : AT(ADDR(.dummy) - LOAD_OFFSET) {
90-
LONG(0xf177)
90+
LONG(0)
91+
LONG(0)
92+
LONG(0)
9193
} :kernel :dummy
9294

9395
/*

0 commit comments

Comments
 (0)