vmlinux.lds.S (97f2aab6698f3ab2552c41c1024a65ffd0763a6d) | vmlinux.lds.S (9d4f13e531b4722fe40cc8e28c02a495bdd49267) |
---|---|
1/* ld script to make ARM Linux kernel 2 * taken from the i386 version by Russell King 3 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz> 4 */ 5 6#include <asm-generic/vmlinux.lds.h> 7#include <linux/config.h> 8#include <asm/thread_info.h> 9#include <asm/memory.h> 10 11OUTPUT_ARCH(arm) 12ENTRY(stext) 13 14#ifndef __ARMEB__ 15jiffies = jiffies_64; 16#else 17jiffies = jiffies_64 + 4; 18#endif 19 | 1/* ld script to make ARM Linux kernel 2 * taken from the i386 version by Russell King 3 * Written by Martin Mares <mj@atrey.karlin.mff.cuni.cz> 4 */ 5 6#include <asm-generic/vmlinux.lds.h> 7#include <linux/config.h> 8#include <asm/thread_info.h> 9#include <asm/memory.h> 10 11OUTPUT_ARCH(arm) 12ENTRY(stext) 13 14#ifndef __ARMEB__ 15jiffies = jiffies_64; 16#else 17jiffies = jiffies_64 + 4; 18#endif 19 |
20SECTIONS 21{ |
|
20#ifdef CONFIG_XIP_KERNEL | 22#ifdef CONFIG_XIP_KERNEL |
21#define TEXTADDR XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR) | 23 . = XIP_VIRT_ADDR(CONFIG_XIP_PHYS_ADDR); |
22#else | 24#else |
23#define TEXTADDR KERNEL_RAM_ADDR | 25 . = PAGE_OFFSET + TEXT_OFFSET; |
24#endif | 26#endif |
25 26SECTIONS 27{ 28 . = TEXTADDR; | |
29 .init : { /* Init code and data */ 30 _stext = .; 31 _sinittext = .; 32 *(.init.text) 33 _einittext = .; 34 __proc_info_begin = .; 35 *(.proc.info.init) 36 __proc_info_end = .; --- 62 unchanged lines hidden (view full) --- 99 } 100 101 RODATA 102 103 _etext = .; /* End of text and rodata section */ 104 105#ifdef CONFIG_XIP_KERNEL 106 __data_loc = ALIGN(4); /* location in binary */ | 27 .init : { /* Init code and data */ 28 _stext = .; 29 _sinittext = .; 30 *(.init.text) 31 _einittext = .; 32 __proc_info_begin = .; 33 *(.proc.info.init) 34 __proc_info_end = .; --- 62 unchanged lines hidden (view full) --- 97 } 98 99 RODATA 100 101 _etext = .; /* End of text and rodata section */ 102 103#ifdef CONFIG_XIP_KERNEL 104 __data_loc = ALIGN(4); /* location in binary */ |
107 . = KERNEL_RAM_ADDR; | 105 . = PAGE_OFFSET + TEXT_OFFSET; |
108#else 109 . = ALIGN(THREAD_SIZE); 110 __data_loc = .; 111#endif 112 113 .data : AT(__data_loc) { 114 __data_start = .; /* address in memory */ 115 --- 66 unchanged lines hidden --- | 106#else 107 . = ALIGN(THREAD_SIZE); 108 __data_loc = .; 109#endif 110 111 .data : AT(__data_loc) { 112 __data_start = .; /* address in memory */ 113 --- 66 unchanged lines hidden --- |