Skip to content

Commit 0c53b6a

Browse files
committed
Merge tag 'next-fixes-20181012' of git://git.kernel.org/pub/scm/linux/kernel/git/sfr/next-fixes
Stephen writes: "A couple of warning fixes: Two fixes from Peter Oberparleiter <oberpar@linux.ibm.com>: Commit 6b7dca4 ("tracing: Allow gcov profiling on only ftrace subsystem") uncovered linker problems when using gcov kernel profiling on some architectures. These problems were likely introduced earlier, and are possibly related to compiler changes." * tag 'next-fixes-20181012' of git://git.kernel.org/pub/scm/linux/kernel/git/sfr/next-fixes: vmlinux.lds.h: Fix linker warnings about orphan .LPBX sections vmlinux.lds.h: Fix incomplete .text.exit discards
2 parents 90ad184 + 52c8ee5 commit 0c53b6a

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎arch/arm/kernel/vmlinux.lds.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#define ARM_DISCARD \
5050
*(.ARM.exidx.exit.text) \
5151
*(.ARM.extab.exit.text) \
52+
*(.ARM.exidx.text.exit) \
53+
*(.ARM.extab.text.exit) \
5254
ARM_CPU_DISCARD(*(.ARM.exidx.cpuexit.text)) \
5355
ARM_CPU_DISCARD(*(.ARM.extab.cpuexit.text)) \
5456
ARM_EXIT_DISCARD(EXIT_TEXT) \

‎include/asm-generic/vmlinux.lds.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
*/
6969
#ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
7070
#define TEXT_MAIN .text .text.[0-9a-zA-Z_]*
71-
#define DATA_MAIN .data .data.[0-9a-zA-Z_]*
71+
#define DATA_MAIN .data .data.[0-9a-zA-Z_]* .data..LPBX*
7272
#define SDATA_MAIN .sdata .sdata.[0-9a-zA-Z_]*
7373
#define RODATA_MAIN .rodata .rodata.[0-9a-zA-Z_]*
7474
#define BSS_MAIN .bss .bss.[0-9a-zA-Z_]*
@@ -613,8 +613,8 @@
613613

614614
#define EXIT_DATA \
615615
*(.exit.data .exit.data.*) \
616-
*(.fini_array) \
617-
*(.dtors) \
616+
*(.fini_array .fini_array.*) \
617+
*(.dtors .dtors.*) \
618618
MEM_DISCARD(exit.data*) \
619619
MEM_DISCARD(exit.rodata*)
620620

0 commit comments

Comments
 (0)