Skip to contentSkip to conversation

PATCH: Discard .exitcall.exit for alpha.

PATCH H . J . Lu 1 participant 2 messages Nov 22, 2001

Subsystems (2)
lore
Share & tools
lore

H . J . Lu

author
#0 lore raw

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.
----

arch/alpha/vmlinux.lds.in renamed from arch/alpha/vmlinux.lds.in.discard +1 -1
@@ -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) }
 }
author
#1 lore raw
Quoted 6 lines · H . J . Lu

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.
----

drivers/char/serial.c renamed from drivers/char/serial.c.exit +2 -0
@@ -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,
 };