lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 96e01fbc was 9bcdbc5, checked in by Martin Decky <martin@…>, 13 years ago |
|
make sure the code in .init is always aligned reasonably
(despite .interp section being also present in the text segment)
|
-
Property mode
set to
100644
|
|
File size:
876 bytes
|
| 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 | }
|
|---|
| 13 |
|
|---|
| 14 | SECTIONS {
|
|---|
| 15 | #ifdef LOADER
|
|---|
| 16 | . = 0x70004000 + SIZEOF_HEADERS;
|
|---|
| 17 |
|
|---|
| 18 | .interp : {
|
|---|
| 19 | *(.interp);
|
|---|
| 20 | } :interp :text
|
|---|
| 21 | #else
|
|---|
| 22 | . = 0x4000 + SIZEOF_HEADERS;
|
|---|
| 23 | #endif
|
|---|
| 24 |
|
|---|
| 25 | /* Make sure the code is aligned reasonably */
|
|---|
| 26 | . = ALIGN(., 16);
|
|---|
| 27 |
|
|---|
| 28 | .init : {
|
|---|
| 29 | *(.init);
|
|---|
| 30 | } :text
|
|---|
| 31 |
|
|---|
| 32 | .text : {
|
|---|
| 33 | *(.text .text.*);
|
|---|
| 34 | *(.rodata .rodata.*);
|
|---|
| 35 | } :text
|
|---|
| 36 |
|
|---|
| 37 | . = . + 0x4000;
|
|---|
| 38 |
|
|---|
| 39 | .got : {
|
|---|
| 40 | _gp = .;
|
|---|
| 41 | *(.got*);
|
|---|
| 42 | } :data
|
|---|
| 43 |
|
|---|
| 44 | .data : {
|
|---|
| 45 | *(.data);
|
|---|
| 46 | *(.sdata);
|
|---|
| 47 | } :data
|
|---|
| 48 |
|
|---|
| 49 | .tdata : {
|
|---|
| 50 | _tdata_start = .;
|
|---|
| 51 | *(.tdata);
|
|---|
| 52 | _tdata_end = .;
|
|---|
| 53 | _tbss_start = .;
|
|---|
| 54 | *(.tbss);
|
|---|
| 55 | _tbss_end = .;
|
|---|
| 56 | } :data
|
|---|
| 57 |
|
|---|
| 58 | _tls_alignment = ALIGNOF(.tdata);
|
|---|
| 59 |
|
|---|
| 60 | .bss : {
|
|---|
| 61 | *(.sbss);
|
|---|
| 62 | *(COMMON);
|
|---|
| 63 | *(.bss);
|
|---|
| 64 | } :data
|
|---|
| 65 |
|
|---|
| 66 | /DISCARD/ : {
|
|---|
| 67 | *(*);
|
|---|
| 68 | }
|
|---|
| 69 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.