Changeset c2c4127 in mainline
- Timestamp:
- 2018-07-11T16:55:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2eadda9
- Parents:
- 2d56e2e
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-10 19:09:09)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 16:55:23)
- Location:
- uspace
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
r2d56e2e rc2c4127 117 117 LIBPOSIX_PREFIX = $(LIB_PREFIX)/posix 118 118 LIBDLTEST_PREFIX = $(LIB_PREFIX)/dltest 119 120 START_FILES = $(LIBC_PREFIX)/arch/$(UARCH)/src/entry.o 119 121 120 122 AFLAGS = --fatal-warnings … … 339 341 ifneq ($(filter %.cpp %.cc %.cxx, $(SOURCES)),) 340 342 $(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBTAGS) $(CXX_BASE_LIBS) 341 $(CXX) $(CXXFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $( OBJECTS) $(LIBARGS) $(CXX_BASE_LIBS)343 $(CXX) $(CXXFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $(START_FILES) $(OBJECTS) $(LIBARGS) $(CXX_BASE_LIBS) 342 344 else 343 345 $(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBTAGS) $(BASE_LIBS) 344 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $( OBJECTS) $(LIBARGS) $(BASE_LIBS)346 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $(START_FILES) $(OBJECTS) $(LIBARGS) $(BASE_LIBS) 345 347 endif 346 348 … … 349 351 ifneq ($(TEST_BINARY),) 350 352 $(TEST_BINARY): $(LINKER_SCRIPT) $(TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBTAGS) $(BASE_LIBS) 351 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $( TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBARGS) $(BASE_LIBS)353 $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_LDFLAGS) -T $(LINKER_SCRIPT) -Wl,-Map,$@.map -o $@ $(START_FILES) $(TEST_OBJECTS) $(TEST_BINARY_LIBS) $(LIBARGS) $(BASE_LIBS) 352 354 endif 353 355 -
uspace/lib/c/Makefile
r2d56e2e rc2c4127 39 39 40 40 PRE_DEPEND = 41 EXTRA_OUTPUT = $(LINKER_SCRIPTS) 41 EXTRA_OUTPUT = $(LINKER_SCRIPTS) $(START_FILES) 42 42 EXTRA_CLEAN = $(LINKER_SCRIPTS) 43 43 EXTRA_TEST_CFLAGS = -Wno-deprecated-declarations -
uspace/lib/c/arch/abs32le/Makefile.inc
r2d56e2e rc2c4127 34 34 arch/$(UARCH)/src/syscall.c \ 35 35 arch/$(UARCH)/src/stacktrace.c 36 37 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/abs32le/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/amd64/Makefile.inc
r2d56e2e rc2c4127 38 38 ARCH_AUTOCHECK_HEADERS = \ 39 39 arch/$(UARCH)/include/libarch/fibril_context.h 40 41 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o42 -
uspace/lib/c/arch/amd64/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/arm32/Makefile.inc
r2d56e2e rc2c4127 37 37 arch/$(UARCH)/src/stacktrace.c \ 38 38 arch/$(UARCH)/src/stacktrace_asm.S 39 40 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o41 -
uspace/lib/c/arch/arm32/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/ia32/Makefile.inc
r2d56e2e rc2c4127 40 40 ARCH_AUTOCHECK_HEADERS = \ 41 41 arch/$(UARCH)/include/libarch/fibril_context.h 42 43 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/ia32/_link.ld.in
r2d56e2e rc2c4127 1 1 #ifndef SHLIB 2 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)3 2 ENTRY(_start) 4 3 #endif -
uspace/lib/c/arch/ia64/Makefile.inc
r2d56e2e rc2c4127 39 39 ARCH_AUTOCHECK_HEADERS = \ 40 40 arch/$(UARCH)/include/libarch/fibril_context.h 41 42 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/ia64/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/mips32/Makefile.inc
r2d56e2e rc2c4127 38 38 ARCH_AUTOCHECK_HEADERS = \ 39 39 arch/$(UARCH)/include/libarch/fibril_context.h 40 41 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/mips32/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(__start) 3 2 -
uspace/lib/c/arch/mips32eb/Makefile.inc
r2d56e2e rc2c4127 38 38 ARCH_AUTOCHECK_HEADERS = \ 39 39 arch/$(UARCH)/include/libarch/fibril_context.h 40 41 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/ppc32/Makefile.inc
r2d56e2e rc2c4127 38 38 ARCH_AUTOCHECK_HEADERS = \ 39 39 arch/$(UARCH)/include/libarch/fibril_context.h 40 41 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/ppc32/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/riscv64/Makefile.inc
r2d56e2e rc2c4127 37 37 ARCH_AUTOCHECK_HEADERS = \ 38 38 arch/$(UARCH)/include/libarch/fibril_context.h 39 40 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/riscv64/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/c/arch/sparc64/Makefile.inc
r2d56e2e rc2c4127 37 37 ARCH_AUTOCHECK_HEADERS = \ 38 38 arch/$(UARCH)/include/libarch/fibril_context.h 39 40 EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o -
uspace/lib/c/arch/sparc64/_link.ld.in
r2d56e2e rc2c4127 1 STARTUP(LIBC_PATH/arch/UARCH/src/entry.o)2 1 ENTRY(_start) 3 2 -
uspace/lib/pcut/Makefile
r2d56e2e rc2c4127 36 36 37 37 test-libpcut-%: $(LIBRARY).a 38 $(CC) $(CFLAGS) $(LDFLAGS) -T $(LINKER_SCRIPT) -o $@ $(START UP) $^ $(LIBRARY).a $(BASE_LIBS)38 $(CC) $(CFLAGS) $(LDFLAGS) -T $(LINKER_SCRIPT) -o $@ $(START_FILES) $^ $(LIBRARY).a $(BASE_LIBS) 39 39 -
uspace/lib/pcut/update-from-master.sh
r2d56e2e rc2c4127 80 80 81 81 test-libpcut-%: $(LIBRARY).a 82 $(CC) $(CFLAGS) $(LDFLAGS) -T $(LINKER_SCRIPT) -o $@ $(START UP) $^ $(LIBRARY).a $(BASE_LIBS)82 $(CC) $(CFLAGS) $(LDFLAGS) -T $(LINKER_SCRIPT) -o $@ $(START_FILES) $^ $(LIBRARY).a $(BASE_LIBS) 83 83 84 84 EOF_MAKEFILE_TAIL -
uspace/lib/posix/Makefile
r2d56e2e rc2c4127 37 37 SPECS = gcc.specs 38 38 LIBC_LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 39 LIBC_STARTUP_FILE = $( shell sed -n -e 's/^.*STARTUP(\(.*\)).*$$/\1/p' $(LIBC_LINKER_SCRIPT))39 LIBC_STARTUP_FILE = $(START_FILES) 40 40 EXPORT_LINKER_SCRIPT = link.ld 41 41 EXPORT_STARTUP_FILE = crt0.o … … 94 94 EXPORT_LDFLAGS = \ 95 95 -L$$(HELENOS_EXPORT_ROOT)/lib \ 96 -T link.ld 96 -T link.ld \ 97 $(EXPORT_STARTUP_FILE) 97 98 98 99 EXPORT_LDLIBS = \ … … 116 117 117 118 $(EXPORT_LINKER_SCRIPT): $(LIBC_LINKER_SCRIPT) 118 sed 's/STARTUP(.*)/STARTUP(crt0.o)/' $< >$@119 cp $< $@ 119 120 120 121 $(EXPORT_STARTUP_FILE): $(LIBC_STARTUP_FILE)
Note:
See TracChangeset
for help on using the changeset viewer.