source: mainline/libc/arch/amd64/_link.ld.in@ 83b1d61

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 83b1d61 was 07d960a, checked in by Jakub Jermar <jakub@…>, 20 years ago

Change linker scripts so that heap a dedicated address space area can be allocated for heap.
This will be essential in separating anonymous memory and memory backed by some other memory object.

  • Property mode set to 100644
File size: 564 bytes
RevLine 
[1a030b8]1STARTUP(../libc/arch/ARCH/src/entry.o)
2ENTRY(__entry)
3
[d03e156]4PHDRS {
[a3aa1e1]5 text PT_LOAD FLAGS(5);
6 data PT_LOAD FLAGS(6);
[d03e156]7}
8
[1a030b8]9SECTIONS {
[d03e156]10 . = 0x1000;
[a3aa1e1]11
12 .init ALIGN(0x1000) : SUBALIGN(0x1000) {
13 *(.init);
14 } :text
15 .text : {
[d03e156]16 *(.text);
[a3aa1e1]17 *(.rodata*);
18 } :text
19
20 .data ALIGN(0x1000) : SUBALIGN(0x1000) {
21 *(.data);
22 } :data
[c4c5de5]23 .tdata : {
24 _tdata_start = .;
25 *(.tdata);
26 _tdata_end = .;
27 } :data
28 .tbss : {
29 _tbss_start = .;
30 *(.tbss);
31 _tbss_end = .;
32 } :data
33
[a3aa1e1]34 .bss : {
35 *(COMMON);
36 *(.bss);
37 } :data
[d03e156]38
[07d960a]39 . = ALIGN(0x1000);
40 _heap = .;
41
[d03e156]42 /DISCARD/ : {
[a3aa1e1]43 *(*);
[d03e156]44 }
45
[1a030b8]46}
Note: See TracBrowser for help on using the repository browser.