Module Name:    src
Committed By:   martin
Date:           Fri Dec 29 20:27:31 UTC 2023

Modified Files:
        src/sys/arch/netwinder/conf [netbsd-10]: kern.ldscript

Log Message:
Additionally pull up following revision(s) (requested by uwe in ticket #510):

        sys/arch/netwinder/conf/kern.ldscript: revision 1.12

netwinder: kern.ldscript - preserve the .text section alignment

This change from evbarm was omitted in previous, but older binutils in
netbsd-10 seem to need it.


To generate a diff of this commit:
cvs rdiff -u -r1.10.48.1 -r1.10.48.2 \
    src/sys/arch/netwinder/conf/kern.ldscript

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/netwinder/conf/kern.ldscript
diff -u src/sys/arch/netwinder/conf/kern.ldscript:1.10.48.1 src/sys/arch/netwinder/conf/kern.ldscript:1.10.48.2
--- src/sys/arch/netwinder/conf/kern.ldscript:1.10.48.1	Tue Dec 19 12:49:40 2023
+++ src/sys/arch/netwinder/conf/kern.ldscript	Fri Dec 29 20:27:31 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern.ldscript,v 1.10.48.1 2023/12/19 12:49:40 martin Exp $	*/
+/*	$NetBSD: kern.ldscript,v 1.10.48.2 2023/12/29 20:27:31 martin Exp $	*/
 
 SECTIONS
 {
@@ -12,8 +12,8 @@ SECTIONS
   }
 
   /* Read-only sections, merged into text segment: */
-  .text (KERNEL_BASE_virt + SIZEOF(.start)) :
-  AT (LOADADDR(.start) + SIZEOF(.start))
+  .text (KERNEL_BASE_virt + ALIGN(SIZEOF(.start), ALIGNOF(.text))) :
+  AT (LOADADDR(.start) + ALIGN(SIZEOF(.start), ALIGNOF(.text)))
   {
     *(.text)
     *(.text.*)

Reply via email to