lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since ba733e83 was 0783634, checked in by Martin Decky <martin@…>, 13 years ago |
|
place the .interp section behind the other sections in the text segment
the explicit alignment directive (which causes issues such as #491) is no longer needed
|
-
Property mode
set to
100644
|
|
File size:
939 bytes
|
| Line | |
|---|
| 1 | OUTPUT_FORMAT(elf64-tradlittlemips)
|
|---|
| 2 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
|
|---|
| 3 | ENTRY(__entry)
|
|---|
| 4 |
|
|---|
| 5 | PHDRS {
|
|---|
| 6 | #ifdef LOADER
|
|---|
| 7 | interp PT_INTERP;
|
|---|
| 8 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
|---|
| 9 | #else
|
|---|
| 10 | text PT_LOAD FLAGS(5);
|
|---|
| 11 | #endif
|
|---|
| 12 | data PT_LOAD FLAGS(6);
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | SECTIONS {
|
|---|
| 16 | #ifdef LOADER
|
|---|
| 17 | . = 0x70004000 + SIZEOF_HEADERS;
|
|---|
| 18 | #else
|
|---|
| 19 | . = 0x4000 + SIZEOF_HEADERS;
|
|---|
| 20 | #endif
|
|---|
| 21 |
|
|---|
| 22 | .init : {
|
|---|
| 23 | *(.init);
|
|---|
| 24 | } :text
|
|---|
| 25 |
|
|---|
| 26 | .text : {
|
|---|
| 27 | *(.text .text.*);
|
|---|
| 28 | *(.rodata .rodata.*);
|
|---|
| 29 | } :text
|
|---|
| 30 |
|
|---|
| 31 | #ifdef LOADER
|
|---|
| 32 | .interp : {
|
|---|
| 33 | *(.interp);
|
|---|
| 34 | } :interp :text
|
|---|
| 35 | #endif
|
|---|
| 36 |
|
|---|
| 37 | . = . + 0x4000;
|
|---|
| 38 |
|
|---|
| 39 | .data : {
|
|---|
| 40 | *(.data);
|
|---|
| 41 | *(.data.rel*);
|
|---|
| 42 | } :data
|
|---|
| 43 |
|
|---|
| 44 | .got : {
|
|---|
| 45 | _gp = .;
|
|---|
| 46 | *(.got);
|
|---|
| 47 | } :data
|
|---|
| 48 |
|
|---|
| 49 | .tdata : {
|
|---|
| 50 | _tdata_start = .;
|
|---|
| 51 | *(.tdata);
|
|---|
| 52 | _tdata_end = .;
|
|---|
| 53 | } :data
|
|---|
| 54 |
|
|---|
| 55 | .tbss : {
|
|---|
| 56 | _tbss_start = .;
|
|---|
| 57 | *(.tbss);
|
|---|
| 58 | _tbss_end = .;
|
|---|
| 59 | } :data
|
|---|
| 60 |
|
|---|
| 61 | _tls_alignment = MAX(ALIGNOF(.tdata), ALIGNOF(.tbss));
|
|---|
| 62 |
|
|---|
| 63 | .sbss : {
|
|---|
| 64 | *(.scommon);
|
|---|
| 65 | *(.sbss);
|
|---|
| 66 | }
|
|---|
| 67 |
|
|---|
| 68 | .bss : {
|
|---|
| 69 | *(.bss);
|
|---|
| 70 | *(COMMON);
|
|---|
| 71 | } :data
|
|---|
| 72 |
|
|---|
| 73 | /DISCARD/ : {
|
|---|
| 74 | *(*);
|
|---|
| 75 | }
|
|---|
| 76 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.