linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Martin Hicks <mort@wildopensource.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] Add -nodefaultlibs while compiling against klibc
Date: Mon, 08 Dec 2003 15:38:46 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-107089795726392@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-106978186702036@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

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


[-- Attachment #2: klibc-libgcc-fixes.diff --]
[-- Type: text/x-patch, Size: 1114 bytes --]

# 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))
 

  parent reply	other threads:[~2003-12-08 15:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 17:30 [PATCH] Add -nodefaultlibs while compiling against klibc Martin Hicks
2003-12-02  1:13 ` Greg KH
2003-12-07 21:55 ` Olaf Hering
2003-12-08 10:02 ` Arnd Bergmann
2003-12-08 15:38 ` Martin Hicks [this message]
2003-12-08 19:17 ` Olaf Hering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-107089795726392@msgid-missing \
    --to=mort@wildopensource.com \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).