Ignore:
Timestamp:
2018-04-10T18:51:14Z (7 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/riscv64/_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);
     
    1310
    1411SECTIONS {
    15 #ifdef LOADER
    16         . = SEGMENT_START("text-segment", 0x70400000);
    17 #else
    1812        . = SEGMENT_START("text-segment", 0x400000);
    19 #endif
    2013#ifndef SHLIB
    2114        PROVIDE (__executable_start = .);
     
    2821                *(.srodata .srodata.*);
    2922        } :text
    30 
    31 #ifdef LOADER
    32         .interp : {
    33                 *(.interp);
    34         } :interp :text
    35 #endif
    3623
    3724        . = . + 0x1000;
Note: See TracChangeset for help on using the changeset viewer.