Changeset 20287223 in mainline for uspace/lib/c/arch/arm32/_link.ld.in


Ignore:
Timestamp:
2018-04-10T18:51:14Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae84e38
Parents:
57d44dd
Message:

Instead of having a special linker script for loader, move its base using a linker command line option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/arm32/_link.ld.in

    r57d44dd r20287223  
    33
    44PHDRS {
    5 #ifdef LOADER
    6         interp PT_INTERP;
    7 #endif
    85        text PT_LOAD FILEHDR PHDRS FLAGS(5);
    96        data PT_LOAD FLAGS(6);
     
    129
    1310SECTIONS {
    14 #ifdef LOADER
    15         . = SEGMENT_START("text-segment", 0x70400000);
    16 #else
    1711        . = SEGMENT_START("text-segment", 0x400000);
    18 #endif
    1912#ifndef SHLIB
    2013        PROVIDE (__executable_start = .);
     
    3023                *(.rodata .rodata.*);
    3124        } :text
    32 
    33 #ifdef LOADER
    34         .interp : {
    35                 *(.interp);
    36         } :interp :text
    37 #endif
    3825
    3926        . = . + 0x1000;
Note: See TracChangeset for help on using the changeset viewer.