From 6b4dbe0358cc620165b48dd9ddce33e291cf0881 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sat, 12 Apr 2014 22:35:39 +0200 Subject: [PATCH] Rename crt1.o to crt0.o and install compatibility crt1.o. This prepares for an incompatible compiler toolchain change scheduled for Sortix 0.10 development where crt0.o is used instead of crt1.o. --- libc/Makefile | 6 +++++- libc/x64/{crt1.S => crt0.S} | 2 +- libc/x86/{crt1.S => crt0.S} | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) rename libc/x64/{crt1.S => crt0.S} (99%) rename libc/x86/{crt1.S => crt0.S} (99%) diff --git a/libc/Makefile b/libc/Makefile index 101f5b3f..18e0cdf5 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -622,6 +622,7 @@ $(FREEOBJS) \ $(HOSTEDOBJS) \ CRTOBJ=\ +crt0.o \ crt1.o \ crti.o \ crtn.o \ @@ -671,9 +672,12 @@ libk.a: $(LIBK_OBJS) librt.a: $(HOSTAR) rcs $@ -crt1.o: $(CPUDIR)/crt1.o +crt0.o: $(CPUDIR)/crt0.o ln -f $< $@ +crt1.o: crt0.o + cp $< $@ + crti.o: $(CPUDIR)/crti.o ln -f $< $@ diff --git a/libc/x64/crt1.S b/libc/x64/crt0.S similarity index 99% rename from libc/x64/crt1.S rename to libc/x64/crt0.S index fc15e315..8cf82c4d 100644 --- a/libc/x64/crt1.S +++ b/libc/x64/crt0.S @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - x64/crt1.S + x64/crt0.S Implement the _start symbol at which execution begins which performs the task of initializing the standard library and executing the main function. diff --git a/libc/x86/crt1.S b/libc/x86/crt0.S similarity index 99% rename from libc/x86/crt1.S rename to libc/x86/crt0.S index 9f623c8d..8d5a863b 100644 --- a/libc/x86/crt1.S +++ b/libc/x86/crt0.S @@ -17,7 +17,7 @@ You should have received a copy of the GNU Lesser General Public License along with the Sortix C Library. If not, see . - x86/crt1.S + x86/crt0.S Implement the _start symbol at which execution begins which performs the task of initializing the standard library and executing the main function.