lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 9359aae 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:
1.3 KB
|
| Line | |
|---|
| 1 | STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
|
|---|
| 2 | ENTRY(__entry)
|
|---|
| 3 |
|
|---|
| 4 | PHDRS {
|
|---|
| 5 | #ifdef LOADER
|
|---|
| 6 | interp PT_INTERP;
|
|---|
| 7 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
|---|
| 8 | #else
|
|---|
| 9 | text PT_LOAD FLAGS(5);
|
|---|
| 10 | #endif
|
|---|
| 11 | data PT_LOAD FLAGS(6);
|
|---|
| 12 | debug PT_NOTE;
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | SECTIONS {
|
|---|
| 16 | #ifdef LOADER
|
|---|
| 17 | . = 0x70001000 + SIZEOF_HEADERS;
|
|---|
| 18 | #else
|
|---|
| 19 | . = 0x1000 + 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 | . = . + 0x1000;
|
|---|
| 38 |
|
|---|
| 39 | .data : {
|
|---|
| 40 | *(.data);
|
|---|
| 41 | *(.sdata);
|
|---|
| 42 | } :data
|
|---|
| 43 |
|
|---|
| 44 | .tdata : {
|
|---|
| 45 | _tdata_start = .;
|
|---|
| 46 | *(.tdata);
|
|---|
| 47 | _tdata_end = .;
|
|---|
| 48 | _tbss_start = .;
|
|---|
| 49 | *(.tbss);
|
|---|
| 50 | _tbss_end = .;
|
|---|
| 51 | } :data
|
|---|
| 52 |
|
|---|
| 53 | _tls_alignment = ALIGNOF(.tdata);
|
|---|
| 54 |
|
|---|
| 55 | .bss : {
|
|---|
| 56 | *(.sbss);
|
|---|
| 57 | *(COMMON);
|
|---|
| 58 | *(.bss);
|
|---|
| 59 | } :data
|
|---|
| 60 |
|
|---|
| 61 | #ifdef CONFIG_LINE_DEBUG
|
|---|
| 62 | .comment 0 : { *(.comment); } :debug
|
|---|
| 63 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug
|
|---|
| 64 | .debug_aranges 0 : { *(.debug_aranges); } :debug
|
|---|
| 65 | .debug_info 0 : { *(.debug_info); } :debug
|
|---|
| 66 | .debug_line 0 : { *(.debug_line); } :debug
|
|---|
| 67 | .debug_loc 0 : { *(.debug_loc); } :debug
|
|---|
| 68 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug
|
|---|
| 69 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
|
|---|
| 70 | .debug_ranges 0 : { *(.debug_ranges); } :debug
|
|---|
| 71 | .debug_str 0 : { *(.debug_str); } :debug
|
|---|
| 72 | #endif
|
|---|
| 73 |
|
|---|
| 74 | /DISCARD/ : {
|
|---|
| 75 | *(*);
|
|---|
| 76 | }
|
|---|
| 77 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.