Changeset 82d9087 in mainline for uspace/srv/loader/Makefile


Ignore:
Timestamp:
2018-08-01T20:20:52Z (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:
3b10ae36
Parents:
f787c8e
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-01 20:20:43)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-01 20:20:52)
Message:

Use default linker scripts (as provided by the linker) in uspace.

There have been some issues before, but they appear to have been resolved
since then.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/Makefile

    rf787c8e r82d9087  
    2929
    3030USPACE_PREFIX = ../..
     31ROOT_PATH = $(USPACE_PREFIX)/..
     32CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    3133
    32 EXTRA_LDFLAGS = -Wl,-Ttext-segment=0x70000000
     34include $(CONFIG_MAKEFILE)
     35
     36ifeq ($(UARCH),ia64)
     37        # IA64 has a peculiar linker script with a fixed data segment address.
     38        # Because the loader is a separate nonrelocatable binary in the same
     39        # address space as the application, we provide a modified copy of
     40        # the default linker script to work around that.
     41        EXTRA_LDFLAGS = -T elf64_ia64_loader.x
     42else
     43        # On all other architectures, we can simply move the text segment.
     44        EXTRA_LDFLAGS = -Wl,-Ttext-segment=0x70000000
     45endif
    3346
    3447BINARY = loader
Note: See TracChangeset for help on using the changeset viewer.