cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

vmlinux.lds.S (804B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2/*
      3 * Copyright (C) 2009 Thomas Chou <thomas@wytron.com.tw>
      4 */
      5
      6#include <asm-generic/vmlinux.lds.h>
      7
      8OUTPUT_FORMAT("elf32-littlenios2", "elf32-littlenios2", "elf32-littlenios2")
      9
     10OUTPUT_ARCH(nios)
     11ENTRY(_start)	/* Defined in head.S */
     12
     13SECTIONS
     14{
     15	. = (CONFIG_NIOS2_MEM_BASE + CONFIG_NIOS2_BOOT_LINK_OFFSET) |	\
     16		CONFIG_NIOS2_KERNEL_REGION_BASE;
     17
     18	_text = .;
     19	.text : { *(.text) } = 0
     20	.rodata : { *(.rodata) *(.rodata.*) }
     21	_etext = .;
     22
     23	. = ALIGN(32 / 8);
     24	.data : { *(.data) }
     25	. = ALIGN(32 / 8);
     26	_got = .;
     27	.got : {
     28		*(.got.plt)
     29		*(.igot.plt)
     30		*(.got)
     31		*(.igot)
     32	}
     33	_egot = .;
     34	_edata =  .;
     35
     36	. = ALIGN(32 / 8);
     37	__bss_start = .;
     38	.bss : { *(.bss) *(.sbss) }
     39	. = ALIGN(32 / 8);
     40	_ebss = .;
     41	end = . ;
     42	_end = . ;
     43
     44	got_len = (_egot - _got);
     45}