Skip to content

Commit 97cddfc

Browse files
committed
Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 build updates from Ingo Molnar: "A handful of updates: two linker script cleanups and a stock defconfig+allmodconfig bootability fix" * 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/vdso: Discard .note.gnu.property sections in vDSO x86, vmlinux.lds: Add RUNTIME_DISCARD_EXIT to generic DISCARDS x86/Kconfig: Make CMDLINE_OVERRIDE depend on non-empty CMDLINE
2 parents 9589351 + 4caffe6 commit 97cddfc

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,7 @@ config CMDLINE
24172417

24182418
config CMDLINE_OVERRIDE
24192419
bool "Built-in command line overrides boot loader arguments"
2420-
depends on CMDLINE_BOOL
2420+
depends on CMDLINE_BOOL && CMDLINE != ""
24212421
---help---
24222422
Set this option to 'Y' to have the kernel ignore the boot loader
24232423
command line, and use ONLY the built-in command line.

arch/x86/entry/vdso/vdso-layout.lds.S

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ SECTIONS
5757
*(.gnu.linkonce.b.*)
5858
} :text
5959

60+
/*
61+
* Discard .note.gnu.property sections which are unused and have
62+
* different alignment requirement from vDSO note sections.
63+
*/
64+
/DISCARD/ : {
65+
*(.note.gnu.property)
66+
}
6067
.note : { *(.note.*) } :text :note
6168

6269
.eh_frame_hdr : { *(.eh_frame_hdr) } :text :eh_frame_hdr

arch/x86/kernel/vmlinux.lds.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#define LOAD_OFFSET __START_KERNEL_map
2222
#endif
2323

24+
#define RUNTIME_DISCARD_EXIT
2425
#define EMITS_PT_NOTE
2526
#define RO_EXCEPTION_TABLE_ALIGN 16
2627

include/asm-generic/vmlinux.lds.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,10 +894,17 @@
894894
* section definitions so that such archs put those in earlier section
895895
* definitions.
896896
*/
897+
#ifdef RUNTIME_DISCARD_EXIT
898+
#define EXIT_DISCARDS
899+
#else
900+
#define EXIT_DISCARDS \
901+
EXIT_TEXT \
902+
EXIT_DATA
903+
#endif
904+
897905
#define DISCARDS \
898906
/DISCARD/ : { \
899-
EXIT_TEXT \
900-
EXIT_DATA \
907+
EXIT_DISCARDS \
901908
EXIT_CALL \
902909
*(.discard) \
903910
*(.discard.*) \

0 commit comments

Comments
 (0)