* PATCH: Discard .exitcall.exit for alpha.
@ 2001-11-22 8:43 H . J . Lu
2001-11-22 20:23 ` H . J . Lu
0 siblings, 1 reply; 2+ messages in thread
From: H . J . Lu @ 2001-11-22 8:43 UTC (permalink / raw)
To: linux kernel, Torvalds; Linus
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) }
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: PATCH: Discard .exitcall.exit for alpha.
2001-11-22 8:43 PATCH: Discard .exitcall.exit for alpha H . J . Lu
@ 2001-11-22 20:23 ` H . J . Lu
0 siblings, 0 replies; 2+ messages in thread
From: H . J . Lu @ 2001-11-22 20:23 UTC (permalink / raw)
To: linux kernel, Torvalds; Linus
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,
};
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-22 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-22 8:43 PATCH: Discard .exitcall.exit for alpha H . J . Lu
2001-11-22 20:23 ` H . J . Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox