source: mainline/kernel/arch/arm32/_link.ld.in@ 12b0d51

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 12b0d51 was d7ef14b, checked in by Jiri Svoboda <jiri@…>, 15 years ago

Link kernel to the proper base address for gta02. Change machine_get_memory_size() to machine_get_memory_extents() and trivially implement for gta02.

  • Property mode set to 100644
File size: 957 bytes
Line 
1/*
2 * ARM linker script
3 *
4 * kernel text
5 * kernel data
6 *
7 */
8
9#ifdef MACHINE_gta02
10#define KERNEL_LOAD_ADDRESS 0xb0a08000
11#else
12#define KERNEL_LOAD_ADDRESS 0x80a00000
13#endif
14
15OUTPUT_ARCH(arm)
16ENTRY(kernel_image_start)
17
18SECTIONS {
19 . = KERNEL_LOAD_ADDRESS;
20 .text : {
21 ktext_start = .;
22 *(.text);
23 ktext_end = .;
24 }
25 .data : {
26 kdata_start = .;
27 *(.data); /* initialized data */
28 hardcoded_ktext_size = .;
29 LONG(ktext_end - ktext_start);
30 hardcoded_kdata_size = .;
31 LONG(kdata_end - kdata_start);
32 hardcoded_load_address = .;
33 LONG(KERNEL_LOAD_ADDRESS);
34 *(.bss); /* uninitialized static variables */
35 *(COMMON); /* global variables */
36
37 *(.rodata*);
38 *(.sdata);
39 *(.reginfo);
40 . = ALIGN(8);
41 symbol_table = .;
42 *(symtab.*);
43 }
44 .sbss : {
45 *(.sbss);
46 *(.scommon);
47 }
48
49 kdata_end = .;
50
51 /DISCARD/ : {
52 *(.mdebug*);
53 *(.pdr);
54 *(.comment);
55 *(.note);
56 }
57}
Note: See TracBrowser for help on using the repository browser.