mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e6d7bc0bdf
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
78 lines
897 B
ArmAsm
78 lines
897 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* realmode.lds.S
|
|
*
|
|
* Linker script for the real-mode code
|
|
*/
|
|
|
|
#include <asm/page_types.h>
|
|
|
|
#undef i386
|
|
|
|
OUTPUT_FORMAT("elf32-i386")
|
|
OUTPUT_ARCH(i386)
|
|
|
|
SECTIONS
|
|
{
|
|
real_mode_seg = 0;
|
|
|
|
. = 0;
|
|
.header : {
|
|
pa_real_mode_base = .;
|
|
*(.header)
|
|
}
|
|
|
|
. = ALIGN(4);
|
|
.rodata : {
|
|
*(.rodata)
|
|
*(.rodata.*)
|
|
. = ALIGN(16);
|
|
video_cards = .;
|
|
*(.videocards)
|
|
video_cards_end = .;
|
|
}
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
pa_text_start = .;
|
|
.text : {
|
|
*(.text)
|
|
*(.text.*)
|
|
}
|
|
|
|
.text32 : {
|
|
*(.text32)
|
|
*(.text32.*)
|
|
}
|
|
|
|
.text64 : {
|
|
*(.text64)
|
|
*(.text64.*)
|
|
}
|
|
pa_ro_end = .;
|
|
|
|
. = ALIGN(PAGE_SIZE);
|
|
.data : {
|
|
*(.data)
|
|
*(.data.*)
|
|
}
|
|
|
|
. = ALIGN(128);
|
|
.bss : {
|
|
*(.bss*)
|
|
}
|
|
|
|
/* End signature for integrity checking */
|
|
. = ALIGN(4);
|
|
.signature : {
|
|
*(.signature)
|
|
}
|
|
|
|
/DISCARD/ : {
|
|
*(.note*)
|
|
*(.debug*)
|
|
*(.eh_frame*)
|
|
}
|
|
|
|
#include "pasyms.h"
|
|
}
|