From f2b2c80f4e1f30fc416aef1f38515dcf5cc57970 Mon Sep 17 00:00:00 2001 From: Pawel Wieczorkiewicz Date: Fri, 8 Oct 2021 13:54:38 +0200 Subject: [PATCH] link: handle all .{text,data,bss}.* auxiliary sections Libpfm upon build creates many additional .text.* and .data.* sections. Combine and place them into the main ones: .text and .data. Signed-off-by: Pawel Wieczorkiewicz --- arch/x86/link.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/link.ld b/arch/x86/link.ld index aac61e12..c61663a0 100644 --- a/arch/x86/link.ld +++ b/arch/x86/link.ld @@ -154,6 +154,7 @@ SECTIONS . = ALIGN(4K); __start_text = .; *(.text) + *(.text.*) . = ALIGN(4K); __end_text = .; } :kernel @@ -163,6 +164,7 @@ SECTIONS . = ALIGN(4K); __start_data = .; *(.data) + *(.data.*) __start_cmdline = .; *(.cmdline) __end_cmdline = .; @@ -184,6 +186,7 @@ SECTIONS __start_bss = .; *(COMMON) *(.bss) + *(.bss.*) . = ALIGN(4K); __end_bss = .; } :kernel