lfn
serial
ticket/834-toolchain-update
topic/fix-logger-deadlock
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since b6d20a7 was ab08b42, checked in by Ondrej Palkovsky <ondrap@…>, 21 years ago |
|
Added symbol table lookup in exceptions.
This breaks ia64 & ppc architecture compiles.
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /** AMD64 linker script
|
|---|
| 2 | *
|
|---|
| 3 | * umapped section:
|
|---|
| 4 | * kernel text
|
|---|
| 5 | * kernel data
|
|---|
| 6 | * mapped section:
|
|---|
| 7 | * kernel text
|
|---|
| 8 | * kernel data
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | OUTPUT_FORMAT(binary)
|
|---|
| 12 | ENTRY(kernel_image_start)
|
|---|
| 13 |
|
|---|
| 14 | SECTIONS {
|
|---|
| 15 | .unmapped 0x8000: AT (0x8000) {
|
|---|
| 16 | unmapped_ktext_start = .;
|
|---|
| 17 | *(K_TEXT_START);
|
|---|
| 18 | *(K_TEXT_START_2);
|
|---|
| 19 | unmapped_ktext_end = .;
|
|---|
| 20 | unmapped_kdata_start = .;
|
|---|
| 21 | *(K_DATA_START);
|
|---|
| 22 | unmapped_kdata_end = .;
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | .mapped (0xffffffff80000000+SIZEOF(.unmapped)+0x8000) : AT (0x8000+SIZEOF(.unmapped)) {
|
|---|
| 26 | ktext_start = .;
|
|---|
| 27 | *(BOOT_DATA);
|
|---|
| 28 | *(.text);
|
|---|
| 29 | ktext_end = .;
|
|---|
| 30 |
|
|---|
| 31 | kdata_start = .;
|
|---|
| 32 | *(.data); /* initialized data */
|
|---|
| 33 | *(.rodata*); /* string literals */
|
|---|
| 34 | hardcoded_load_address = .;
|
|---|
| 35 | QUAD(0xffffffff80008000);
|
|---|
| 36 | hardcoded_ktext_size = .;
|
|---|
| 37 | QUAD(ktext_end - ktext_start + (unmapped_ktext_end - unmapped_ktext_start));
|
|---|
| 38 | hardcoded_kdata_size = .;
|
|---|
| 39 | QUAD(kdata_end - kdata_start + (unmapped_kdata_end - unmapped_kdata_start));
|
|---|
| 40 | *(COMMON); /* global variables */
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | *(.eh_frame);
|
|---|
| 45 | *(.bss); /* uninitialized static variables */
|
|---|
| 46 | *(K_DATA_END);
|
|---|
| 47 |
|
|---|
| 48 | symbol_table = .;
|
|---|
| 49 | *(symtab.*); /* Symbol table, must be LAST symbol!*/
|
|---|
| 50 |
|
|---|
| 51 | kdata_end = .;
|
|---|
| 52 | }
|
|---|
| 53 | _map_address = 0xffffffff80000000;
|
|---|
| 54 | e820table_boot = e820table - _map_address;
|
|---|
| 55 | e820counter_boot = e820counter - _map_address;
|
|---|
| 56 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.