Path: blob/master/arch/parisc/boot/compressed/vmlinux.lds.S
26298 views
#include <asm-generic/vmlinux.lds.h>1#include <asm/page.h>2#include "sizes.h"34#ifndef CONFIG_64BIT5OUTPUT_FORMAT("elf32-hppa-linux")6OUTPUT_ARCH(hppa)7#else8OUTPUT_FORMAT("elf64-hppa-linux")9OUTPUT_ARCH(hppa:hppa2.0w)10#endif1112ENTRY(startup)1314SECTIONS15{16/* palo loads at 0x60000 */17/* loaded kernel will move to 0x10000 */18. = 0xe0000; /* should not overwrite palo code */1920.head.text : {21_head = . ;22HEAD_TEXT23_ehead = . ;24}2526/* keep __gp below 0x1000000 */27#ifdef CONFIG_64BIT28. = ALIGN(16);29/* Linkage tables */30.opd : {31__start_opd = .;32*(.opd)33__end_opd = .;34} PROVIDE (__gp = .);35.plt : {36*(.plt)37}38.dlt : {39*(.dlt)40}41#endif42_startcode_end = .;4344/* vmlinux.bin.gz is here */45. = ALIGN(8);46.rodata.compressed : {47*(.rodata.compressed)48}4950/* bootloader code and data starts at least behind area of extracted kernel */51. = MAX(ABSOLUTE(.), (SZ_end - SZparisc_kernel_start + KERNEL_BINARY_TEXT_START));5253/* align on next page boundary */54. = ALIGN(4096);55.text : {56_text = .; /* Text */57*(.text)58*(.text.*)59_etext = . ;60}61. = ALIGN(8);62.data : {63_data = . ;64*(.data)65*(.data.*)66_edata = . ;67}68. = ALIGN(8);69.rodata : {70_rodata = . ;71*(.rodata) /* read-only data */72*(.rodata.*)73_erodata = . ;74}75. = ALIGN(8);76.bss : {77_bss = . ;78*(.bss)79*(.bss.*)80*(COMMON)81. = ALIGN(4096);82_ebss = .;83}8485STABS_DEBUG86ELF_DETAILS87.note 0 : { *(.note) }8889/* Sections to be discarded */90DISCARDS91/DISCARD/ : {92#ifdef CONFIG_64BIT93/* temporary hack until binutils is fixed to not emit these94* for static binaries95*/96*(.PARISC.unwind) /* no unwind data */97*(.interp)98*(.dynsym)99*(.dynstr)100*(.dynamic)101*(.hash)102*(.gnu.hash)103#endif104}105}106107108