OSDN Git Service

sparc: Add .exit.data section.
authorDavid S. Miller <davem@davemloft.net>
Sun, 12 Jan 2020 08:07:42 +0000 (00:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:34:37 +0000 (08:34 +0100)
[ Upstream commit 548f0b9a5f4cffa0cecf62eb12aa8db682e4eee6 ]

This fixes build errors of all sorts.

Also, emit .exit.text unconditionally.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/sparc/kernel/vmlinux.lds.S

index 61afd78..59b6df1 100644 (file)
@@ -172,12 +172,14 @@ SECTIONS
        }
        PERCPU_SECTION(SMP_CACHE_BYTES)
 
-#ifdef CONFIG_JUMP_LABEL
        . = ALIGN(PAGE_SIZE);
        .exit.text : {
                EXIT_TEXT
        }
-#endif
+
+       .exit.data : {
+               EXIT_DATA
+       }
 
        . = ALIGN(PAGE_SIZE);
        __init_end = .;