public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* local symbols in discarded section
@ 2003-06-19 20:34 Luck, Tony
  2003-06-19 20:44 ` David Mosberger
  0 siblings, 1 reply; 2+ messages in thread
From: Luck, Tony @ 2003-06-19 20:34 UTC (permalink / raw)
  To: linux-ia64

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


>   Tony> undefined reference to `local symbols in discarded 
> section .exit.text'
> 
>   Tony> message.  Is this related to the warning about using 
> an old linker?
> 
> Not likely.  It sounds like a driver is failing to use __exit_p() (see
> linux/init.h).

The offending driver is i460-agp.c.  Patch attached.

-Tony

[-- Attachment #2: i460-agp.patch --]
[-- Type: application/octet-stream, Size: 441 bytes --]

===== drivers/char/agp/i460-agp.c 1.26 vs edited =====
--- 1.26/drivers/char/agp/i460-agp.c	Mon Jun 16 18:55:34 2003
+++ edited/drivers/char/agp/i460-agp.c	Thu Jun 19 13:28:28 2003
@@ -608,7 +608,7 @@
 	.name		= "agpgart-intel-i460",
 	.id_table	= agp_intel_i460_pci_table,
 	.probe		= agp_intel_i460_probe,
-	.remove		= agp_intel_i460_remove,
+	.remove		= __exit_p(agp_intel_i460_remove),
 };
 
 static int __init agp_intel_i460_init(void)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: local symbols in discarded section
  2003-06-19 20:34 local symbols in discarded section Luck, Tony
@ 2003-06-19 20:44 ` David Mosberger
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger @ 2003-06-19 20:44 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Thu, 19 Jun 2003 13:34:55 -0700, "Luck, Tony" <tony.luck@intel.com> said:

  Tony> undefined reference to `local symbols in discarded
  >> section .exit.text'

  Tony> message.  Is this related to the warning about using
  >> an old linker?

  >> Not likely.  It sounds like a driver is failing to use __exit_p()
  >> (see linux/init.h).

  Tony> The offending driver is i460-agp.c.  Patch attached.

Applied, thanks.

	--david

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-19 20:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-19 20:34 local symbols in discarded section Luck, Tony
2003-06-19 20:44 ` David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox