source: mainline/uspace/lib/c/arch/arm32/_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: 795 bytes
RevLine 
[1b1164e8]1STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)
[d630139]2ENTRY(__entry)
3
4PHDRS {
[c53d906]5#ifdef LOADER
6 interp PT_INTERP;
7 text PT_LOAD FILEHDR PHDRS FLAGS(5);
8#else
[d630139]9 text PT_LOAD FLAGS(5);
[c53d906]10#endif
[d630139]11 data PT_LOAD FLAGS(6);
12}
13
14SECTIONS {
[c53d906]15#ifdef LOADER
[e1c0260]16 . = 0x70001000 + SIZEOF_HEADERS;
17
[c53d906]18 .interp : {
19 *(.interp);
[e1c0260]20 } :interp :text
[c53d906]21#else
22 . = 0x1000 + SIZEOF_HEADERS;
23#endif
[e1c0260]24
[1cc2974]25 .init : {
[d630139]26 *(.init);
[5e8b881]27 } :text
28
[d630139]29 .text : {
[21cb3ac]30 *(.text .text.*);
31 *(.rodata .rodata.*);
[d630139]32 } :text
[5e8b881]33
[1cc2974]34 . = . + 0x1000;
[5e8b881]35
[1cc2974]36 .data : {
[d630139]37 *(.opd);
38 *(.data .data.*);
39 *(.sdata);
40 } :data
[5e8b881]41
[d630139]42 .tdata : {
43 _tdata_start = .;
44 *(.tdata);
45 _tdata_end = .;
46 _tbss_start = .;
47 *(.tbss);
48 _tbss_end = .;
49 } :data
[5e8b881]50
[e622f0a8]51 _tls_alignment = ALIGNOF(.tdata);
[5e8b881]52
[d630139]53 .bss : {
54 *(.sbss);
55 *(.scommon);
[5e8b881]56 *(COMMON);
57 *(.bss);
[d630139]58 } :data
[6b781c0]59
[d630139]60 /DISCARD/ : {
61 *(*);
[6b781c0]62 }
[d630139]63}
Note: See TracBrowser for help on using the repository browser.