Changeset 99013b84 in mainline for uspace/srv/loader/Makefile


Ignore:
Timestamp:
2018-05-15T18:54:09Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Parents:
fac0ac7
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-02 19:48:42)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-05-15 18:54:09)
Message:

Don't use custom ldscripts in uspace.

Even with the *-linux-gnu targets, there is practically nothing Linux-specific
in the linker itself. We get a few GNU program headers this way, but those
can be safely ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/Makefile

    rfac0ac7 r99013b84  
    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.