From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Hicks Date: Mon, 08 Dec 2003 15:38:46 +0000 Subject: Re: [PATCH] Add -nodefaultlibs while compiling against klibc MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-rjtlyAnePfXrS6LajiDE" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org --=-rjtlyAnePfXrS6LajiDE Content-Type: text/plain Content-Transfer-Encoding: 7bit On Mon, 2003-12-08 at 05:02, Arnd Bergmann wrote: > On Sunday 07 December 2003 22:55, Olaf Hering wrote: > > > > this gives me linker errors on ppc and ia64: > > > > > tdb/tdb.o(.text+0x1092): In function `tdb_chainunlock_read': > > : undefined reference to `__umodsi3' > > > Does this help? Nope. I had to do something very similar to what Olaf posted for ppc to get ia64 to compile again. Judging from the Makefile.inc in other arches this is the correct thing to do. I wonder what I compiled when I tested that patch? Obviously not a build against klibc... Attached is the patch that I'm going to send to the klibc list for ia64. I'll let Olaf send the ppc fixes. I don't have a ppc machine. mh -- Martin Hicks Wild Open Source Inc. mort@wildopensource.com 613-266-2296 --=-rjtlyAnePfXrS6LajiDE Content-Disposition: attachment; filename=klibc-libgcc-fixes.diff Content-Type: text/x-patch; name=klibc-libgcc-fixes.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit # This is a BitKeeper generated patch for the following project: # Project Name: The kernel C library # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.251 -> 1.252 # klibc/arch/ia64/Makefile.inc 1.5 -> 1.6 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/12/08 mort@green.i.bork.org 1.252 # Add some libgcc object files to Makefile.inc for ia64. # -------------------------------------------- # diff -Nru a/klibc/arch/ia64/Makefile.inc b/klibc/arch/ia64/Makefile.inc --- a/klibc/arch/ia64/Makefile.inc Mon Dec 8 10:28:26 2003 +++ b/klibc/arch/ia64/Makefile.inc Mon Dec 8 10:28:26 2003 @@ -10,7 +10,15 @@ ARCHOBJS = \ arch/$(ARCH)/vfork.o \ arch/$(ARCH)/setjmp.o \ - arch/$(ARCH)/pipe.o + arch/$(ARCH)/pipe.o \ + libgcc/__divdi3.o \ + libgcc/__divsi3.o \ + libgcc/__udivdi3.o \ + libgcc/__udivsi3.o \ + libgcc/__umodsi3.o \ + libgcc/__umoddi3.o \ + libgcc/__udivmodsi4.o \ + libgcc/__udivmoddi4.o ARCHSOOBJS = $(patsubst %o,%.lo,%(ARCHOBJS)) --=-rjtlyAnePfXrS6LajiDE-- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel