lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 6340b4d2 was 2eadda9, checked in by Jiří Zárevúcky <jiri.zarevucky@…>, 7 years ago |
|
Remove undefined references to main program from shared libc.
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | ENTRY(__start)
|
|---|
| 2 |
|
|---|
| 3 | PHDRS {
|
|---|
| 4 | text PT_LOAD FILEHDR PHDRS FLAGS(5);
|
|---|
| 5 | data PT_LOAD FLAGS(6);
|
|---|
| 6 | tls PT_TLS;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | SECTIONS {
|
|---|
| 10 | #ifdef SHLIB
|
|---|
| 11 | . = SEGMENT_START("text-segment", 0);
|
|---|
| 12 | #else
|
|---|
| 13 | . = SEGMENT_START("text-segment", 0x400000);
|
|---|
| 14 | PROVIDE (__executable_start = .);
|
|---|
| 15 | #endif
|
|---|
| 16 | . = . + SIZEOF_HEADERS;
|
|---|
| 17 |
|
|---|
| 18 | .init : {
|
|---|
| 19 | *(.init);
|
|---|
| 20 | } :text
|
|---|
| 21 |
|
|---|
| 22 | .text : {
|
|---|
| 23 | *(.text .text.*);
|
|---|
| 24 | *(.rodata .rodata.*);
|
|---|
| 25 | } :text
|
|---|
| 26 |
|
|---|
| 27 | . = . + 0x4000;
|
|---|
| 28 |
|
|---|
| 29 | .data : {
|
|---|
| 30 | *(.data);
|
|---|
| 31 | *(.data.rel*);
|
|---|
| 32 | } :data
|
|---|
| 33 |
|
|---|
| 34 | .got : {
|
|---|
| 35 | _gp = .;
|
|---|
| 36 | *(.got);
|
|---|
| 37 | } :data
|
|---|
| 38 |
|
|---|
| 39 | .tdata : {
|
|---|
| 40 | *(.tdata);
|
|---|
| 41 | *(.tdata.*);
|
|---|
| 42 | *(.gnu.linkonce.td.*);
|
|---|
| 43 | } :data :tls
|
|---|
| 44 |
|
|---|
| 45 | .tbss : {
|
|---|
| 46 | *(.tbss);
|
|---|
| 47 | *(.tbss.*);
|
|---|
| 48 | *(.gnu.linkonce.tb.*);
|
|---|
| 49 | } :data :tls
|
|---|
| 50 |
|
|---|
| 51 | .sbss : {
|
|---|
| 52 | *(.scommon);
|
|---|
| 53 | *(.sbss);
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | .bss : {
|
|---|
| 57 | *(.bss);
|
|---|
| 58 | *(COMMON);
|
|---|
| 59 | } :data
|
|---|
| 60 |
|
|---|
| 61 | __dso_handle = .;
|
|---|
| 62 |
|
|---|
| 63 | .init_array : {
|
|---|
| 64 | #ifndef SHLIB
|
|---|
| 65 | PROVIDE_HIDDEN (__init_array_start = .);
|
|---|
| 66 | #endif
|
|---|
| 67 | KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
|
|---|
| 68 | KEEP (*(.init_array .ctors))
|
|---|
| 69 | #ifndef SHLIB
|
|---|
| 70 | PROVIDE_HIDDEN (__init_array_end = .);
|
|---|
| 71 | #endif
|
|---|
| 72 | }
|
|---|
| 73 |
|
|---|
| 74 | .fini_array : {
|
|---|
| 75 | #ifndef SHLIB
|
|---|
| 76 | PROVIDE_HIDDEN (__fini_array_start = .);
|
|---|
| 77 | #endif
|
|---|
| 78 | KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))
|
|---|
| 79 | KEEP (*(.fini_array .dtors))
|
|---|
| 80 | #ifndef SHLIB
|
|---|
| 81 | PROVIDE_HIDDEN (__fini_array_end = .);
|
|---|
| 82 | #endif
|
|---|
| 83 | }
|
|---|
| 84 |
|
|---|
| 85 | _end = .;
|
|---|
| 86 |
|
|---|
| 87 | /DISCARD/ : {
|
|---|
| 88 | *(*);
|
|---|
| 89 | }
|
|---|
| 90 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.