Skip to contentSkip to conversation

local symbols in discarded section

PATCH Applied Luck, Tony 2 participants 2 messages Jun 19, 2003 Agpgart driver

lore
Share & tools
lore

Luck, Tony

author
#0 lore raw
Quoted 9 lines

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

===== drivers/char/agp/i460-agp.c 1.26 vs edited =====

drivers/char/agp/i460-agp.c +1 -1
@@ -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)
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Tony

Tony> undefined reference to `local symbols in discarded

Quoted 1 line
Quoted 1 line

section .exit.text'

Tony> message. Is this related to the warning about using

Quoted 4 lines
Quoted 4 lines

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