Hi Linus,
The upcoming binutils will flag relocations against discarded sections
as fatal errors. Here is a patch for the alpha linker script.
H.J.
----
--- linux/arch/alpha/vmlinux.lds.in.discard Thu Nov 22 00:30:16 2001
+++ linux/arch/alpha/vmlinux.lds.in Thu Nov 22 00:30:47 2001
@@ -92,5 +92,5 @@ SECTIONS
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
- /DISCARD/ : { *(.text.exit) *(.data.exit) }
+ /DISCARD/ : { *(.text.exit) *(.data.exit) *(.exitcall.exit) }
}
On Thu, Nov 22, 2001 at 12:43:02AM -0800, H . J . Lu wrote:
> Hi Linus,
>
> The upcoming binutils will flag relocations against discarded sections
> as fatal errors. Here is a patch for the alpha linker script.
>
>
Here is another patch. serial_remove_one will be discarded if serial
is not rebuilt as a module.
H.J.
----
--- linux/drivers/char/serial.c.exit Mon Aug 13 01:15:08 2001
+++ linux/drivers/char/serial.c Fri Nov 16 17:08:32 2001
@@ -4741,7 +4741,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,
};