Skip to content

Commit e6d7bc0

Browse files
committed
x86/build: Use the single-argument OUTPUT_FORMAT() linker script command
The various x86 linker scripts use the three-argument linker script command variant OUTPUT_FORMAT(DEFAULT, BIG, LITTLE) which specifies three object file formats when the -EL and -EB linker command line options are used. When -EB is specified, OUTPUT_FORMAT issues the BIG object file format, when -EL, LITTLE, respectively, and when neither is specified, DEFAULT. However, those -E[LB] options are not used by arch/x86/ so switch to the simple OUTPUT_FORMAT(BFDNAME) macro variant. No functional changes. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: x86@kernel.org Link: https://lkml.kernel.org/r/20190109181531.27513-1-bp@alien8.de
1 parent 927185c commit e6d7bc0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/x86/boot/compressed/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* SPDX-License-Identifier: GPL-2.0 */
22
#include <asm-generic/vmlinux.lds.h>
33

4-
OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)
4+
OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT)
55

66
#undef i386
77

arch/x86/boot/setup.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Linker script for the i386 setup code
55
*/
6-
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
6+
OUTPUT_FORMAT("elf32-i386")
77
OUTPUT_ARCH(i386)
88
ENTRY(_start)
99

arch/x86/kernel/vmlinux.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#undef i386 /* in case the preprocessor is a 32bit one */
3333

34-
OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)
34+
OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT)
3535

3636
#ifdef CONFIG_X86_32
3737
OUTPUT_ARCH(i386)

arch/x86/realmode/rm/realmode.lds.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#undef i386
1111

12-
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
12+
OUTPUT_FORMAT("elf32-i386")
1313
OUTPUT_ARCH(i386)
1414

1515
SECTIONS

0 commit comments

Comments
 (0)