convert powerpc-darwin.macho-entry.h to new linker

This commit is contained in:
John Reiser
2006-08-14 21:20:30 -07:00
parent 6a7066ac2f
commit 6788a05dd1
2 changed files with 617 additions and 40 deletions
+5 -3
View File
@@ -720,9 +720,11 @@ powerpc-darwin.macho% : tc_list = powerpc-linux.elf default
powerpc-darwin.macho% : tc_bfdname = elf32-powerpc
powerpc-darwin.macho-entry.h : $(srcdir)/src/$$T.S
$(call tc,gcc) -c $< -o tmp/$T.o
$(call tc,objstrip) tmp/$T.o
$(call tc,ld) --oformat binary tmp/$T.o -o tmp/$T.bin
$(call tc,gcc) -c $< -o tmp/$T.bin
$(call tc,m-objcopy) --strip-unneeded tmp/$T.bin
$(call tc,m-objcopy) -R .text -R .data -R .bss tmp/$T.bin
$(call tc,m-objcopy) -R .note -R .comment tmp/$T.bin
$(call tc,m-objdump) -trwh tmp/$T.bin >> tmp/$T.bin
$(call tc,bin2h) --ident=l_mac_ppc32_loader tmp/$T.bin $@
powerpc-darwin.macho-fold.h : tmp/$$T.o tmp/powerpc-darwin.macho-main.o