More i386 and -m32 fixes for compiling meterpreter

This should be the last change necessary to compile a 32-bit meterpreter
from a 64-bit build host.

See #6268
unstable
James Lee 2012-01-31 10:10:06 -07:00
parent bced98add2
commit ba50f84229
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ for i in $BAD_FILES ; do
rm flood/$i >/dev/null rm flood/$i >/dev/null
done done
gcc -Wl,--hash-style=sysv -nostdinc -nostdlib -shared -o libbionic.so flood/*.o -lgcc gcc -Wl,--hash-style=sysv -nostdinc -nostdlib -shared -o libbionic.so flood/*.o -lgcc -march=i386 -m32
[ ! -f libc.so ] && ln -s ${PWD}/libbionic.so libc.so [ ! -f libc.so ] && ln -s ${PWD}/libbionic.so libc.so

View File

@ -17,7 +17,7 @@ msflinker: $(OBJ)
strip msflinker strip msflinker
msflinker.bin: msflinker elf2bin.c msflinker.bin: msflinker elf2bin.c
gcc -o elf2bin elf2bin.c gcc -march=i386 -m32 -o elf2bin elf2bin.c
./elf2bin msflinker msflinker.bin ./elf2bin msflinker msflinker.bin
libc.h: ../../bionic/compiled/libc.so libc.h: ../../bionic/compiled/libc.so
@ -51,7 +51,7 @@ libpcap.h: ../../bionic/compiled/libpcap.so
metsrv_rtld.o: libc.h libm.h libcrypto.h libssl.h libmetsrv_main.h libsupport.h libpcap.h metsrv_rtld.o: libc.h libm.h libcrypto.h libssl.h libmetsrv_main.h libsupport.h libpcap.h
rtldtest: rtldtest.c msflinker rtldtest: rtldtest.c msflinker
gcc -o rtldtest rtldtest.c -DEP=`objdump -f msflinker | grep start | awk '{ print $$3 }'` gcc -march=i386 -m32 -o rtldtest rtldtest.c -DEP=`objdump -f msflinker | grep start | awk '{ print $$3 }'`
.s.o: .s.o:
gcc $(CFLAGS) -c $< gcc $(CFLAGS) -c $<