mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 04:56:43 +07:00
6f8f0dc980
Now that .eh_frame sections for the files in setup.elf and realmode.elf are not generated anymore, the linker scripts don't need the special output section name /DISCARD/ any more. Remove the one in the main kernel linker script as well, since there are no .eh_frame sections already, and fix up a comment referencing .eh_frame. Update the comment in asm/dwarf2.h referring to .eh_frame so it continues to make sense, as well as being more specific. [ bp: Touch up commit message. ] Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Tested-by: Nathan Chancellor <natechancellor@gmail.com> Link: https://lkml.kernel.org/r/20200224232129.597160-3-nivedita@alum.mit.edu
78 lines
902 B
ArmAsm
78 lines
902 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)
|
|
ENTRY(pa_text_start)
|
|
|
|
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*)
|
|
}
|
|
|
|
#include "pasyms.h"
|
|
}
|