Skip to content

Commit

Permalink
link: handle all .{text,data,bss}.* auxiliary sections
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
wipawel committed Oct 8, 2021
1 parent 4431f14 commit f2b2c80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/link.ld
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ SECTIONS
. = ALIGN(4K);
__start_text = .;
*(.text)
*(.text.*)
. = ALIGN(4K);
__end_text = .;
} :kernel
Expand All @@ -163,6 +164,7 @@ SECTIONS
. = ALIGN(4K);
__start_data = .;
*(.data)
*(.data.*)
__start_cmdline = .;
*(.cmdline)
__end_cmdline = .;
Expand All @@ -184,6 +186,7 @@ SECTIONS
__start_bss = .;
*(COMMON)
*(.bss)
*(.bss.*)
. = ALIGN(4K);
__end_bss = .;
} :kernel
Expand Down

0 comments on commit f2b2c80

Please sign in to comment.