From 1e6a19cfe9d0eaf7599ec92e6d037716f1a5dc05 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Sat, 6 Dec 2014 10:12:58 +0000 Subject: [PATCH] binutils LD: build script for Kolibri. git-svn-id: svn://kolibrios.org@5223 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/toolchain/binutils/ld/Makefile | 2 +- contrib/toolchain/binutils/ld/ld.sh | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 contrib/toolchain/binutils/ld/ld.sh diff --git a/contrib/toolchain/binutils/ld/Makefile b/contrib/toolchain/binutils/ld/Makefile index 8253359b1c..2732b46df7 100644 --- a/contrib/toolchain/binutils/ld/Makefile +++ b/contrib/toolchain/binutils/ld/Makefile @@ -5,7 +5,7 @@ LIB_DIR:= $(SDK_DIR)/lib CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields CFLAGS_OPT+= -W -Wall -Wmissing-prototypes -Wno-format -Werror -CFLAGS = -c $(CFLAGS_OPT) +CFLAGS = -c -save-temps $(CFLAGS_OPT) INCLUDES= -I. -I../bfd -I../include -I$(SDK_DIR)/sources/newlib/libc/include diff --git a/contrib/toolchain/binutils/ld/ld.sh b/contrib/toolchain/binutils/ld/ld.sh new file mode 100644 index 0000000000..36a4c9e944 --- /dev/null +++ b/contrib/toolchain/binutils/ld/ld.sh @@ -0,0 +1,23 @@ +#SHS +/kolibrios/as -o deffilep.o deffilep.s +/kolibrios/as -o ei386pe.o ei386pe.s +/kolibrios/as -o ldcref.o ldcref.s +/kolibrios/as -o ldctor.o ldctor.s +/kolibrios/as -o ldemul.o ldemul.s +/kolibrios/as -o ldexp.o ldexp.s +/kolibrios/as -o ldfile.o ldfile.s +/kolibrios/as -o ldgram.o ldgram.s +/kolibrios/as -o ldlang.o ldlang.s +/kolibrios/as -o ldlex-wrapper.o ldlex-wrapper.s +/kolibrios/as -o ldmain.o ldmain.s +/kolibrios/as -o ldmisc.o ldmisc.s +/kolibrios/as -o ldver.o ldver.s +/kolibrios/as -o ldwrite.o ldwrite.s +/kolibrios/as -o lexsup.o lexsup.s +/kolibrios/as -o mri.o mri.s +/kolibrios/as -o pe-dll.o pe-dll.s +/kolibrios/ld @ld.lnk +/kolibrios/objcopy ld-new ld -O binary + + +