lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since 2628642 was 8b6aa39, checked in by Martin Decky <martin@…>, 9 years ago |
dummy/fake support for RISC-V (RV64G)
it compiles and the boot loader extracts the system components, but otherwise the source serves only as a placeholder for future working implementation
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[8b6aa39] | 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 | .text : {
|
---|
| 23 | *(.text .text.*);
|
---|
| 24 | *(.rodata .rodata.*);
|
---|
| 25 | *(.srodata .srodata.*);
|
---|
| 26 | } :text
|
---|
| 27 |
|
---|
| 28 | #ifdef LOADER
|
---|
| 29 | .interp : {
|
---|
| 30 | *(.interp);
|
---|
| 31 | } :interp :text
|
---|
| 32 | #endif
|
---|
| 33 |
|
---|
| 34 | . = . + 0x1000;
|
---|
| 35 |
|
---|
| 36 | .data : {
|
---|
| 37 | *(.data);
|
---|
| 38 | *(.sdata);
|
---|
| 39 | *(.data.rel*);
|
---|
| 40 | } :data
|
---|
| 41 |
|
---|
| 42 | .tdata : {
|
---|
| 43 | _tdata_start = .;
|
---|
| 44 | *(.tdata);
|
---|
| 45 | *(.gnu.linkonce.tb.*);
|
---|
| 46 | _tdata_end = .;
|
---|
| 47 | _tbss_start = .;
|
---|
| 48 | *(.tbss);
|
---|
| 49 | _tbss_end = .;
|
---|
| 50 | } :data
|
---|
| 51 |
|
---|
| 52 | _tls_alignment = ALIGNOF(.tdata);
|
---|
| 53 |
|
---|
| 54 | .sbss : {
|
---|
| 55 | *(.scommon);
|
---|
| 56 | *(.sbss);
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | .bss : {
|
---|
| 60 | *(COMMON);
|
---|
| 61 | *(.bss);
|
---|
| 62 | } :data
|
---|
| 63 |
|
---|
| 64 | #ifdef CONFIG_LINE_DEBUG
|
---|
| 65 | .comment 0 : { *(.comment); } :debug
|
---|
| 66 | .debug_abbrev 0 : { *(.debug_abbrev); } :debug
|
---|
| 67 | .debug_aranges 0 : { *(.debug_aranges); } :debug
|
---|
| 68 | .debug_info 0 : { *(.debug_info); } :debug
|
---|
| 69 | .debug_line 0 : { *(.debug_line); } :debug
|
---|
| 70 | .debug_loc 0 : { *(.debug_loc); } :debug
|
---|
| 71 | .debug_pubnames 0 : { *(.debug_pubnames); } :debug
|
---|
| 72 | .debug_pubtypes 0 : { *(.debug_pubtypes); } :debug
|
---|
| 73 | .debug_ranges 0 : { *(.debug_ranges); } :debug
|
---|
| 74 | .debug_str 0 : { *(.debug_str); } :debug
|
---|
| 75 | #endif
|
---|
| 76 |
|
---|
| 77 | /DISCARD/ : {
|
---|
| 78 | *(*);
|
---|
| 79 | }
|
---|
| 80 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.