Skip to content

Commit cb0cc63

Browse files
rnavmpe
authored andcommitted
powerpc: Include .BTF section
Selecting CONFIG_DEBUG_INFO_BTF results in the below warning from ld: ld: warning: orphan section `.BTF' from `.btf.vmlinux.bin.o' being placed in section `.BTF' Include .BTF section in vmlinux explicitly to fix the same. Signed-off-by: Naveen N. Rao <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e08658a commit cb0cc63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/powerpc/kernel/vmlinux.lds.S

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ SECTIONS
303303
*(.branch_lt)
304304
}
305305

306+
#ifdef CONFIG_DEBUG_INFO_BTF
307+
.BTF : AT(ADDR(.BTF) - LOAD_OFFSET) {
308+
*(.BTF)
309+
}
310+
#endif
311+
306312
.opd : AT(ADDR(.opd) - LOAD_OFFSET) {
307313
__start_opd = .;
308314
KEEP(*(.opd))

0 commit comments

Comments
 (0)