.glue_7 is used for arm code calling thumb code, and .glue_7t is used for
authorkevlo <kevlo@openbsd.org>
Fri, 7 Jan 2022 13:56:54 +0000 (13:56 +0000)
committerkevlo <kevlo@openbsd.org>
Fri, 7 Jan 2022 13:56:54 +0000 (13:56 +0000)
thumb code calling arm code, no need to put these input sections at the text
output section.

ok jsg@ kettenis@

sys/arch/arm64/conf/kern.ldscript
sys/arch/riscv64/conf/kern.ldscript

index f2d3764..d93afaa 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kern.ldscript,v 1.10 2021/06/27 21:39:55 kettenis Exp $         */
+/*     $OpenBSD: kern.ldscript,v 1.11 2022/01/07 13:56:54 kevlo Exp $         */
 /*     $NetBSD: ldscript.evbarm,v 1.2 2003/03/05 23:54:22 thorpej Exp $        */
 
 OUTPUT_ARCH(aarch64)
@@ -24,7 +24,6 @@ SECTIONS
        {
                *(.text .text.*)
                *(.stub)
-               *(.glue_7t) *(.glue_7)
        } :text =0
        PROVIDE (_etext = .);
        PROVIDE (etext = .);
index 64c7897..cddc432 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kern.ldscript,v 1.3 2021/06/27 21:39:55 kettenis Exp $        */
+/*     $OpenBSD: kern.ldscript,v 1.4 2022/01/07 13:56:54 kevlo Exp $   */
 
 OUTPUT_ARCH(riscv64)
 
@@ -23,7 +23,6 @@ SECTIONS
        {
                *(.text .text.*)
                *(.stub)
-               *(.glue_7t) *(.glue_7)
        } :text =0
        PROVIDE (_etext = .);
        PROVIDE (etext = .);