Chameleon

Chameleon Commit Details

Date:2011-08-05 21:53:02 (8 years 2 months ago)
Author:Evan Lojewski
Commit:1285
Parents: 1284
Message:Utils folder compiled with native toolchain.
Changes:
M/branches/xZenu/src/util/dyldsymboltool.c
M/branches/xZenu/Make.rules
M/branches/xZenu/src/arch/i386/boot2/Makefile
M/branches/xZenu/src/util/Makefile
M/branches/xZenu/src/util/fdisk/Makefile

File differences

branches/xZenu/Make.rules
2626
2727
2828
29
2930
31
3032
3133
3234
-MD -dependency-file $(OBJROOT)/$*.d
@md -u $(OBJROOT)/Makedep -f -d $(OBJROOT)/$*.d
NATIVE_OBJECTS = $(addsuffix .o, $(addprefix $(OBJROOT)/, $(OBJECTS)))
$(DIRS_NEEDED) $(INSTALLDIR) $(OBJROOT) $(SYMROOT):
@echo "\t[MKDIR] $@"
@$(MKDIRS) $@
branches/xZenu/src/arch/i386/boot2/Makefile
2020
2121
2222
23
23
2424
2525
2626
......
7575
7676
7777
78
78
7979
8080
8181
......
8888
8989
9090
91
91
9292
9393
9494
#todo: ensur ecorrect arch
MACHOCONV = ${SYMROOT}/../util/machOconv.${ARCH}
MACHOCONV = ${SYMROOT}/../util/machOconv
LIBSADIR = ../libsa
LIBSAIODIR = ../libsaio
@# Generate the Symbols.dylib file
@echo "\t[dyldsymboltool] Symbols.dylib"
@$(SYMROOT)/../util/dyldsymboltool.${ARCH} $(SYMROOT)/boot.sys $(SYMROOT)/${SYMBOLS_MODULE}
@$(SYMROOT)/../util/dyldsymboltool $(SYMROOT)/boot.sys $(SYMROOT)/${SYMBOLS_MODULE}
@echo "\t[LD] boot.sys"
@$(CC) -static -Wl,-preload -Wl,-segaddr,__INIT,$(BOOT2ADDR) \
@# Generate the Symbols.dylib file
@echo "\t[dyldsymboltool] Symbols.dylib"
@$(SYMROOT)/../util/dyldsymboltool.${ARCH} $(SYMROOT)/boot.sys $(SYMROOT)/${SYMBOLS_MODULE}
@$(SYMROOT)/../util/dyldsymboltool $(SYMROOT)/boot.sys $(SYMROOT)/${SYMBOLS_MODULE}
@${RM} $(SYMROOT)/boot.sys
@echo "\t[LD] boot.sys"
branches/xZenu/src/util/fdisk/Makefile
1919
2020
2121
22
22
2323
24
24
2525
26
27
28
29
3026
3127
3228
all: $(SYMROOT) $(OBJROOT) $(PROGRAM)
$(PROGRAM): $(ACTUAL_OBJECTS)
$(PROGRAM): $(NATIVE_OBJECTS)
@echo "\t[LD:${ARCH}] $(@F)"
@$(TARGET_CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -arch ${ARCH} -o $(SYMROOT)/$(@F).${ARCH} $(ACTUAL_OBJECTS)
@$(TARGET_CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(NATIVE_OBJECTS)
@#echo "\t[LIPO] $(@F)"
@#lipo -create -arch i386 $(SYMROOT)/$(@F).i386 -arch ppc $(SYMROOT)/$(@F).ppc -output $(SYMROOT)/$(@F)
@#$(RM) $(SYMROOT)/$(@F).i386 $(SYMROOT)/$(@F).x86_64 $(SYMROOT)/$(@F).ppc
else
all:
endif
branches/xZenu/src/util/dyldsymboltool.c
154154
155155
156156
157
157
158158
159159
160160
, 1, outfile);
char* symtab = malloc(dylib.symtab.stroff + dylib.symtab.strsize - sizeof(dylib) + 1); // Add extra 1 for last symbol
bzero(symtab, dylib.symtab.nsyms * sizeof(struct nlist) + dylib.symtab.strsize + 1);
memset(symtab, 0, dylib.symtab.nsyms * sizeof(struct nlist) + dylib.symtab.strsize + 1);
char* orig = symtab;
//symtab += offset;
branches/xZenu/src/util/Makefile
2727
2828
2929
30
30
3131
3232
3333
......
4040
4141
4242
43
43
4444
45
45
4646
47
48
49
50
5147
5248
5349
endif
LDFLAGS := $(LDFALGS) -framework IOKit -framework CoreFoundation -mmacosx-version-min=10.4
LDFLAGS = $(TARGET_LDFLAGS) -framework IOKit -framework CoreFoundation -mmacosx-version-min=10.4
SYMPROG = $(addsuffix $(addprefix $(SYMROOT)/, $(PROGRAMS)), .${ARCH})
$(SYMPROG): ${ACTUAL_OBJECTS}
$(SYMPROG): ${NATIVE_OBJECTS}
@echo "\t[LD:${ARCH}] $(@F)"
@$(TARGET_CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -arch ${ARCH} -o $(SYMROOT)/$(@F).${ARCH} $(OBJROOT)/$(@F).${ARCH}o
@$(TARGET_CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(SYMROOT)/$(@F) $(OBJROOT)/$(@F).o
@#echo "\t[LIPO] $(@F)"
@#lipo -create -arch i386 $(SYMROOT)/$(@F).i386 -arch ppc $(SYMROOT)/$(@F).ppc -output $(SYMROOT)/$(@F)
@#$(RM) $(SYMROOT)/$(@F).i386 $(SYMROOT)/$(@F).ppc
.PHONY: fdisk440
fdisk440:
@echo ================= make all for fdisk =================;

Archive Download the corresponding diff file

Revision: 1285