All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: eddantes@wanadoo.fr
Cc: linux-kernel@vger.kernel.org
Subject: Re: Bug report 2.4.16: local symbols in discarded section .text.exit
Date: Wed, 05 Dec 2001 16:59:45 +1100	[thread overview]
Message-ID: <4157.1007531985@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Sun, 02 Dec 2001 22:40:05 BST." <3C0A9FB5.8040302@wanadoo.fr>

On Sun, 02 Dec 2001 22:40:05 +0100, 
eddantes@wanadoo.fr wrote:
>drivers/char/char.o(.data+0x46b4): undefined reference to `local symbols
>in discarded section .text.exit'
>drivers/net/net.o(.data+0xb4): undefined reference to `local symbols in
>discarded section .text.exit'

The latest binutils will flag references to symbols in discarded
sections.  Tables that refer to code marked __devexit are now flagged
as an error when the code is built in, because __devexit code is
discarded.  Quick and dirty work around, while I think about a better
fix.

Index: 16.1/drivers/char/serial.c
--- 16.1/drivers/char/serial.c Sat, 10 Nov 2001 21:05:25 +1100 kaos (linux-2.4/b/c/22_serial.c 1.1.3.2.2.3.2.2.1.8.1.1 644)
+++ 16.1(w)/drivers/char/serial.c Wed, 05 Dec 2001 16:54:24 +1100 kaos (linux-2.4/b/c/22_serial.c 1.1.3.2.2.3.2.2.1.8.1.1 644)
@@ -4896,7 +4896,9 @@ MODULE_DEVICE_TABLE(pci, serial_pci_tbl)
 static struct pci_driver serial_pci_driver = {
        name:           "serial",
        probe:          serial_init_one,
+#ifdef MODULE
        remove:	       serial_remove_one,
+#endif
        id_table:       serial_pci_tbl,
 };
 
Index: 16.1/drivers/net/via-rhine.c
--- 16.1/drivers/net/via-rhine.c Sat, 10 Nov 2001 21:05:25 +1100 kaos (linux-2.4/h/c/19_via-rhine. 1.1.1.4.1.2.1.3.1.2.1.1.1.1 644)
+++ 16.1(w)/drivers/net/via-rhine.c Wed, 05 Dec 2001 16:57:23 +1100 kaos (linux-2.4/h/c/19_via-rhine. 1.1.1.4.1.2.1.3.1.2.1.1.1.1 644)
@@ -1667,7 +1667,9 @@ static struct pci_driver via_rhine_drive
 	name:		"via-rhine",
 	id_table:	via_rhine_pci_tbl,
 	probe:		via_rhine_init_one,
+#ifdef MODULE
 	remove:		via_rhine_remove_one,
+#endif
 };
 
 


      reply	other threads:[~2001-12-05  6:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-02 21:40 Bug report 2.4.16: local symbols in discarded section .text.exit eddantes
2001-12-05  5:59 ` Keith Owens [this message]

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=4157.1007531985@kao2.melbourne.sgi.com \
    --to=kaos@ocs.com.au \
    --cc=eddantes@wanadoo.fr \
    --cc=linux-kernel@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.