All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Collins <bcollins@debian.org>
To: sparclinux@vger.kernel.org
Subject: Re: current_thread_info_reg undefined
Date: Fri, 19 Aug 2005 19:27:22 +0000	[thread overview]
Message-ID: <20050819192722.GA6163@swissdisk.com> (raw)
In-Reply-To: <Pine.SOC.4.61.0508181449100.12167@math.ut.ee>

On Fri, Aug 19, 2005 at 12:27:39PM -0700, David S. Miller wrote:
> From: Ben Collins <bcollins@debian.org>
> Date: Fri, 19 Aug 2005 04:31:29 -0700
> 
> > The empty symbol warnings atleast are just a bug with
> > scripts/mod/modpost.c (the patch fabbione sent you awhile back Dave, for
> > STT_SPARC_REGISTER changes in glibc's elf.h).
> > 
> > I think the current_thread_info_reg went away with that patch aswell. If
> > it didn't, I have a fix for that one aswell.
> 
> That fix should be in current 2.6.x... Oh I see, it's still checking
> just STT_REGISTER.  Ben, can you resend that patch to me?


--- linux/scripts/mod/modpost.c	2005-06-17 21:48:29.000000000 +0200
+++ linux-source-2.6.12-2.6.12/scripts/mod/modpost.c	2005-06-30 09:29:54.000000000 +0200
@@ -359,11 +359,16 @@
 		/* ignore __this_module, it will be resolved shortly */
 		if (strcmp(symname, MODULE_SYMBOL_PREFIX "__this_module") = 0)
 			break;
-#ifdef STT_REGISTER
+/* cope with newer glibc (2.3.4 or higher) STT_ definition in elf.h */
+#if defined(STT_REGISTER) || defined(STT_SPARC_REGISTER)
+/* add compatibility with older glibc */
+#ifndef STT_SPARC_REGISTER
+#define STT_SPARC_REGISTER STT_REGISTER
+#endif
 		if (info->hdr->e_machine = EM_SPARC ||
 		    info->hdr->e_machine = EM_SPARCV9) {
 			/* Ignore register directives. */
-			if (ELF_ST_TYPE(sym->st_info) = STT_REGISTER)
+			if (ELF_ST_TYPE(sym->st_info) = STT_SPARC_REGISTER)
 				break;
 		}
 #endif

-- 
Ubuntu     - http://www.ubuntu.com/
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
SwissDisk  - http://www.swissdisk.com/

  parent reply	other threads:[~2005-08-19 19:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 11:50 current_thread_info_reg undefined Meelis Roos
2005-08-18 18:34 ` David S. Miller
2005-08-18 20:09 ` Meelis Roos
2005-08-19 11:31 ` Ben Collins
2005-08-19 18:12 ` Meelis Roos
2005-08-19 19:27 ` Ben Collins [this message]
2005-08-19 19:27 ` David S. Miller
2005-08-19 20:45 ` David S. Miller

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=20050819192722.GA6163@swissdisk.com \
    --to=bcollins@debian.org \
    --cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.