Changes in / [f798178:a71d2630] in mainline
- Files:
-
- 26 added
- 9 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
rf798178 ra71d2630 111 111 112 112 $(RAW): $(OBJECTS) $(COMPONENT_OBJECTS) $(LINK) 113 $(LD) - n$(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(COMPONENT_OBJECTS) $(OBJECTS)113 $(LD) -N $(LFLAGS) -T $(LINK) -M -Map $(MAP) -o $@ $(COMPONENT_OBJECTS) $(OBJECTS) 114 114 115 115 $(LINK): $(LINK).comp $(DEPEND) -
kernel/Makefile
rf798178 ra71d2630 134 134 # 135 135 AFLAGS = 136 LFLAGS = - n-T $(LINK) -M136 LFLAGS = -N -T $(LINK) -M 137 137 138 138 # -
uspace/Makefile.common
rf798178 ra71d2630 203 203 204 204 $(BINARY): $(LINKER_SCRIPT) $(OBJECTS) $(LIBS) $(BASE_LIBS) 205 $(LD) - n$(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS)205 $(LD) -N $(LFLAGS) -T $(LINKER_SCRIPT) -M -Map $(BINARY).map -o $(BINARY) $(OBJECTS) $(LIBS) $(BASE_LIBS) 206 206 ifeq ($(CONFIG_STRIP_BINARIES),y) 207 207 $(STRIP) $(BINARY) -
uspace/lib/c/Makefile
rf798178 ra71d2630 42 42 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config 43 43 44 LINKER_SCRIPTS = \45 $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld \46 $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld47 48 44 PRE_DEPEND = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(INCLUDE_RTLDARCH) $(COMMON_HEADER_ARCH) 49 EXTRA_OUTPUT = $(LINKER_SCRIPT S)50 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(INCLUDE_RTLDARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT S)45 EXTRA_OUTPUT = $(LINKER_SCRIPT) 46 EXTRA_CLEAN = $(INCLUDE_KERNEL) $(INCLUDE_ARCH) $(INCLUDE_LIBARCH) $(INCLUDE_RTLDARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPT) 51 47 LIBRARY = libc 52 48 SLIBRARY = libc.so.0.0 … … 153 149 ln -sfn ../$< $@ 154 150 155 $(LI BC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in151 $(LINKER_SCRIPT): $(LINKER_SCRIPT).in 156 152 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@ 157 158 $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in159 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -DLOADER -E -x c $< | grep -v "^\#" > $@160 153 161 154 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) -
uspace/lib/c/arch/abs32le/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.c \ 31 arch/$(UARCH)/src/entryjmp.c \32 31 arch/$(UARCH)/src/thread_entry.c \ 33 32 arch/$(UARCH)/src/fibril.c \ -
uspace/lib/c/arch/abs32le/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .interp : { 17 *(.interp); 18 } :interp 10 . = 0x1000 + SIZEOF_HEADERS; 19 11 20 . = 0x70001000 + SIZEOF_HEADERS;21 #else22 . = 0x1000 + SIZEOF_HEADERS;23 #endif24 12 .text : { 25 13 *(.text .text.*); -
uspace/lib/c/arch/amd64/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.S \ -
uspace/lib/c/arch/amd64/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 debug PT_NOTE; … … 14 9 15 10 SECTIONS { 16 #ifdef LOADER 17 .interp : { 18 *(.interp); 19 } :interp 11 . = 0x1000 + SIZEOF_HEADERS; 20 12 21 . = 0x70001000 + SIZEOF_HEADERS;22 #else23 . = 0x1000 + SIZEOF_HEADERS;24 #endif25 13 .init : { 26 14 *(.init); -
uspace/lib/c/arch/arm32/Makefile.inc
rf798178 ra71d2630 30 30 ARCH_SOURCES = \ 31 31 arch/$(UARCH)/src/entry.s \ 32 arch/$(UARCH)/src/entryjmp.s \33 32 arch/$(UARCH)/src/thread_entry.s \ 34 33 arch/$(UARCH)/src/syscall.c \ -
uspace/lib/c/arch/arm32/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .interp : { 17 *(.interp); 18 } :interp 10 . = 0x1000 + SIZEOF_HEADERS; 19 11 20 . = 0x70001000 + SIZEOF_HEADERS;21 #else22 . = 0x1000 + SIZEOF_HEADERS;23 #endif24 12 .init : { 25 13 *(.init); -
uspace/lib/c/arch/ia32/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.S \ -
uspace/lib/c/arch/ia32/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 debug PT_NOTE; … … 14 9 15 10 SECTIONS { 16 #ifdef LOADER17 .interp : {18 *(.interp);19 } :interp20 21 . = 0x70001000 + SIZEOF_HEADERS;22 #else23 11 . = 0x1000 + SIZEOF_HEADERS; 24 #endif 12 25 13 .init : { 26 14 *(.init); -
uspace/lib/c/arch/ia64/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.S \ -
uspace/lib/c/arch/ia64/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 5 text PT_LOAD FLAGS(5); 8 #else9 text PT_LOAD FLAGS(5);10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .interp : { 17 *(.interp); 18 } :interp 10 . = 0x4000 + SIZEOF_HEADERS; 19 11 20 . = 0x800000000 + SIZEOF_HEADERS;21 #else22 . = 0x4000 + SIZEOF_HEADERS;23 #endif24 /*25 * XXX This is just a work around. Problem: .init section does not26 * have the proper alignment.27 */28 . = ALIGN(., 16);29 30 12 .init : { 31 13 *(.init); -
uspace/lib/c/arch/mips32/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.c \ -
uspace/lib/c/arch/mips32/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .interp : { 17 *(.interp); 18 } :interp 10 . = 0x4000 + SIZEOF_HEADERS; 19 11 20 . = 0x70004000 + SIZEOF_HEADERS;21 #else22 . = 0x4000 + SIZEOF_HEADERS;23 #endif24 12 .init : { 25 13 *(.init); -
uspace/lib/c/arch/mips32eb/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.c \ -
uspace/lib/c/arch/ppc32/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/syscall.c \ -
uspace/lib/c/arch/ppc32/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .itnerp : { 17 *(.interp); 18 } :interp 10 . = 0x1000 + SIZEOF_HEADERS; 19 11 20 . = 0x70001000 + SIZEOF_HEADERS;21 #else22 . = 0x1000 + SIZEOF_HEADERS;23 #endif24 12 .init : { 25 13 *(.init); -
uspace/lib/c/arch/sparc64/Makefile.inc
rf798178 ra71d2630 29 29 ARCH_SOURCES = \ 30 30 arch/$(UARCH)/src/entry.s \ 31 arch/$(UARCH)/src/entryjmp.s \32 31 arch/$(UARCH)/src/thread_entry.s \ 33 32 arch/$(UARCH)/src/fibril.S \ -
uspace/lib/c/arch/sparc64/_link.ld.in
rf798178 ra71d2630 3 3 4 4 PHDRS { 5 #ifdef LOADER6 interp PT_INTERP;7 text PT_LOAD FILEHDR PHDRS FLAGS(5);8 #else9 5 text PT_LOAD FLAGS(5); 10 #endif11 6 data PT_LOAD FLAGS(6); 12 7 } 13 8 14 9 SECTIONS { 15 #ifdef LOADER 16 .interp : { 17 *(.interp); 18 } :interp 10 . = 0x4000 + SIZEOF_HEADERS; 19 11 20 . = 0x70004000 + SIZEOF_HEADERS;21 #else22 . = 0x4000 + SIZEOF_HEADERS;23 #endif24 12 .init : { 25 13 *(.init); -
uspace/srv/loader/Makefile
rf798178 ra71d2630 36 36 -include $(COMMON_MAKEFILE) 37 37 -include $(CONFIG_MAKEFILE) 38 -include arch/$(UARCH)/Makefile.inc 38 39 39 LINKER_SCRIPT = $(LIBC_PREFIX)/arch/$(UARCH)/_link-loader.ld 40 LINKER_SCRIPT = arch/$(UARCH)/_link.ld 41 EXTRA_CLEAN = $(LINKER_SCRIPT) 40 42 41 43 EXTRA_CFLAGS = -Iinclude -I../../lib/c/rtld/include … … 53 55 54 56 include $(USPACE_PREFIX)/Makefile.common 57 58 $(LINKER_SCRIPT): $(LINKER_SCRIPT).in 59 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ -
uspace/srv/loader/elf_load.c
rf798178 ra71d2630 2 2 * Copyright (c) 2006 Sergey Bondari 3 3 * Copyright (c) 2006 Jakub Jermar 4 * Copyright (c) 20 11Jiri Svoboda4 * Copyright (c) 2008 Jiri Svoboda 5 5 * All rights reserved. 6 6 * … … 53 53 #include <smc.h> 54 54 #include <loader/pcb.h> 55 #include <entry_point.h>56 55 57 56 #include "elf.h" 58 57 #include "elf_load.h" 58 #include "arch.h" 59 59 60 60 #define DPRINTF(...) -
uspace/srv/loader/main.c
rf798178 ra71d2630 55 55 #include <macros.h> 56 56 #include <loader/pcb.h> 57 #include <entry_point.h>58 57 #include <errno.h> 59 58 #include <async.h> … … 72 71 #define DPRINTF(...) 73 72 73 void program_run(void *entry, pcb_t *pcb); 74 74 static int ldr_load_dyn_linked(elf_info_t *p_info); 75 75 … … 394 394 async_answer_0(rid, EOK); 395 395 DPRINTF("Jump to entry point at %p\n", pcb.entry); 396 entry_point_jmp(prog_info.entry, &pcb);396 program_run(prog_info.entry, &pcb); 397 397 398 398 /* Not reached */
Note:
See TracChangeset
for help on using the changeset viewer.