Changeset 1d465bf in mainline
- Timestamp:
- 2011-04-03T15:34:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3a3d4ca
- Parents:
- ec3e2ed
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
rec3e2ed r1d465bf 123 123 ifeq ($(CONFIG_BUILD_SHARED_LIBS), y) 124 124 RD_LIBS += $(USPACE_PATH)/lib/c/libc.so.0 125 RD_LIBS += $(USPACE_PATH)/lib/softint/libsoftint.so.0 125 126 RD_APPS += $(USPACE_PATH)/app/dltest/dltest 126 127 endif … … 132 133 133 134 RD_APPS_NON_ESSENTIAL = \ 135 $(USPACE_PATH)/app/dltest/dltest \ 134 136 $(USPACE_PATH)/app/dltest2/dltest2 \ 135 137 $(USPACE_PATH)/app/dload/dload \ -
uspace/Makefile.common
rec3e2ed r1d465bf 76 76 LARCHIVE = $(LIBRARY).la 77 77 LOUTPUT = $(SLIBRARY) 78 EXTRA_CLEAN += $(LOUTPUT).map $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld 78 EXTRA_OUTPUT += $(LOUTPUT).disasm 79 EXTRA_CLEAN += $(LOUTPUT).map $(LOUTPUT).ldisasm \ 80 $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld 79 81 endif 80 82 … … 96 98 LIBNET_PREFIX = $(LIB_PREFIX)/net 97 99 100 ifeq ($(DYNAMIC_LINKING),y) 101 BASE_LIBS = $(LIBC_PREFIX)/libc.so.0 $(LIBSOFTINT_PREFIX)/libsoftint.a 102 LFLAGS = -Bdynamic 103 LINKER_SCRIPT ?= $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld 104 else 98 105 BASE_LIBS = $(LIBC_PREFIX)/libc.a $(LIBSOFTINT_PREFIX)/libsoftint.a 99 100 106 LINKER_SCRIPT ?= $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld 107 endif 101 108 102 109 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) … … 202 209 endif 203 210 211 ifneq ($(SLIBRARY),) 212 %.disasm: $(LOUTPUT) 213 ifeq ($(CONFIG_LINE_DEBUG),y) 214 $(OBJDUMP) -d -S $< > $@ 215 else 216 $(OBJDUMP) -d $< > $@ 217 endif 218 204 219 $(LOUTPUT): $(LARCHIVE) $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld 205 220 $(LD) -T $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld $(LIB_LFLAGS) $(LARCHIVE) -o $@ -Map $(LOUTPUT).map 221 endif 206 222 207 223 $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld: $(LIBC_PREFIX)/shared/arch/$(UARCH)/_lib.ld.in 224 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 225 226 $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/shared/arch/$(UARCH)/_link.ld.in 208 227 $(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ 209 228 -
uspace/app/dload/Makefile
rec3e2ed r1d465bf 30 30 LIBS = 31 31 EXTRA_CFLAGS = -I../../srv/loader/include -I../../lib/c/rtld/include -Iinclude 32 LINKER_SCRIPT = arch/$(UARCH)/_link.ld 33 EXTRA_CLEAN = $(LINKER_SCRIPT) 32 34 BINARY = dload 33 35 … … 40 42 41 43 include $(USPACE_PREFIX)/Makefile.common 44 45 $(LINKER_SCRIPT): $(LINKER_SCRIPT).in 46 $(GCC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@ -
uspace/app/dload/arch/ia32/start.c
rec3e2ed r1d465bf 41 41 { 42 42 asm ( 43 "mov %%eax, %%e bx\n"43 "mov %%eax, %%edi\n" 44 44 "jmp *%0\n" 45 45 :: "m" (entry), "a" (pcb) -
uspace/app/dltest/Makefile
rec3e2ed r1d465bf 29 29 USPACE_PREFIX = ../.. 30 30 BINARY = dltest 31 DYNAMIC_LINKING = y 31 32 32 33 SOURCES = \ -
uspace/lib/c/Makefile
rec3e2ed r1d465bf 152 152 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 153 153 ln -sfn ../../../$< $@ 154 155 test: 156 echo uspace_prefix=$(USPACE_PREFIX) 157 echo libc_prefix=$(LIBC_PREFIX) 158 echo linker_script=$(LINKER_SCRIPT) -
uspace/lib/c/arch/ia32/src/syscall.S
rec3e2ed r1d465bf 32 32 __syscall_fast_func: 33 33 .long __syscall_slow 34 .size __syscall_fast_func, . - __syscall_fast_func 34 35 35 36 .text -
uspace/lib/softint/Makefile
rec3e2ed r1d465bf 31 31 EXTRA_CFLAGS = -Iinclude 32 32 LIBRARY = libsoftint 33 SLIBRARY = libsoftint.so.0.0 34 LSONAME = libsoftint.so.0 33 35 34 36 SOURCES = \ -
uspace/lib/test/libtest.c
rec3e2ed r1d465bf 35 35 */ 36 36 37 //#include <stdio.h>37 #include <stdio.h> 38 38 #include "libtest.h" 39 39 … … 56 56 int test_fun2(void) 57 57 { 58 return number; 58 return 42; 59 // return number; 59 60 } 60 61 … … 65 66 // return 42; 66 67 // while(1); 67 return test_fun2(); 68 // return test_fun2(); 69 printf("Hello from libtest/test_func()!\n"); 70 return 42; 68 71 } 69 72
Note:
See TracChangeset
for help on using the changeset viewer.