source: mainline/uspace/lib/c/arch/abs32le/_link.ld.in@ e1c0260

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since e1c0260 was e1c0260, checked in by Martin Decky <martin@…>, 13 years ago

improve loader .interp fix

  • suppress the assembler warning by setting @progbits on the .interp section
  • suppress the linker warning by putting the .interp section additionally into the "text" segment
  • use the same ATSIGN convetion as the kernel makefiles use (for consistency)
  • Property mode set to 100644
File size: 787 bytes
Line 
1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
2ENTRY(__entry)
3
4PHDRS {
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
14SECTIONS {
15#ifdef LOADER
16 . = 0x70001000 + SIZEOF_HEADERS;
17
18 .interp : {
19 *(.interp);
20 } :interp :text
21#else
22 . = 0x1000 + SIZEOF_HEADERS;
23#endif
24
25 .text : {
26 *(.text .text.*);
27 *(.rodata .rodata.*);
28 } :text
29
30 . = . + 0x1000;
31
32 .data : {
33 *(.data);
34 *(.data.rel*);
35 } :data
36
37 .tdata : {
38 _tdata_start = .;
39 *(.tdata);
40 *(.gnu.linkonce.tb.*);
41 _tdata_end = .;
42 _tbss_start = .;
43 *(.tbss);
44 _tbss_end = .;
45 } :data
46
47 _tls_alignment = ALIGNOF(.tdata);
48
49 .sbss : {
50 *(.scommon);
51 *(.sbss);
52 }
53
54 .bss : {
55 *(COMMON);
56 *(.bss);
57 } :data
58
59 /DISCARD/ : {
60 *(*);
61 }
62}
Note: See TracBrowser for help on using the repository browser.