source: mainline/libc/arch/mips32/_link.ld.in@ 10569b1

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 10569b1 was 07d960a, checked in by Jakub Jermar <jakub@…>, 19 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: 638 bytes
RevLine 
[cc6f688]1STARTUP(../libc/arch/ARCH/src/entry.o)
[25f9823]2ENTRY(__entry)
[3eddaff]3
[a3aa1e1]4PHDRS {
5 text PT_LOAD FLAGS(5);
6 data PT_LOAD FLAGS(6);
7}
8
[3eddaff]9SECTIONS {
[d03e156]10 . = 0x4000;
[a3aa1e1]11
12 .init ALIGN(0x4000) : SUBALIGN(0x4000) {
[8f9239e]13 *(.init);
[a3aa1e1]14 } :text
[8f9239e]15 .text : {
16 *(.text);
17 *(.rodata*);
[a3aa1e1]18 } :text
[6122db1]19
[a71d9af9]20 .data : {
[8f9239e]21 *(.data);
[a71d9af9]22 *(.data.rel*);
[a3aa1e1]23 } :data
[c4c5de5]24
[e708063]25 .got : {
26 _gp = .;
[a71d9af9]27 *(.got);
[e708063]28 } :data
[c4c5de5]29
30 .tdata : {
31 _tdata_start = .;
32 *(.tdata);
33 _tdata_end = .;
34 } :data
35 .tbss : {
36 _tbss_start = .;
37 *(.tbss);
38 _tbss_end = .;
39 } :data
40
[6122db1]41 .sbss : {
42 *(.scommon);
43 *(.sbss);
44 }
[8f9239e]45 .bss : {
46 *(.bss);
47 *(COMMON);
[a3aa1e1]48 } :data
[6122db1]49
[07d960a]50 . = ALIGN(0x4000);
51 _heap = .;
52
[8f9239e]53 /DISCARD/ : {
[d03e156]54 *(*);
55 }
[3eddaff]56}
Note: See TracBrowser for help on using the repository browser.