PATCH: Discard .exitcall.exit for alpha.
Subsystems (2)
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) } }
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, };