Module Name:    src
Committed By:   maxv
Date:           Thu Aug 30 10:30:06 UTC 2018

Modified Files:
        src/sys/arch/aarch64/conf: kern.ldscript

Log Message:
style, no functional change


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/aarch64/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/aarch64/conf/kern.ldscript
diff -u src/sys/arch/aarch64/conf/kern.ldscript:1.7 src/sys/arch/aarch64/conf/kern.ldscript:1.8
--- src/sys/arch/aarch64/conf/kern.ldscript:1.7	Mon Aug  6 20:05:26 2018
+++ src/sys/arch/aarch64/conf/kern.ldscript	Thu Aug 30 10:30:05 2018
@@ -5,90 +5,102 @@ OUTPUT_FORMAT("elf64-littleaarch64", "el
 	      "elf64-littleaarch64")
 OUTPUT_ARCH(aarch64)
 ENTRY(_start)
+
 SECTIONS
 {
-  /* Read-only sections, merged into text segment: */
-  .text           :
-  {
-    PROVIDE (__kernel_text = .);
-    PROVIDE_HIDDEN (__eprol = .);
-    *(.text)
-    *(.text.unlikely .text.*_unlikely)
-    *(.text.exit .text.exit.*)
-    *(.text.startup .text.startup.*)
-    *(.text.hot .text.hot.*)
-    *(.stub .text.* .gnu.linkonce.t.*)
-    /* .gnu.warning sections are handled specially by elf32.em.  */
-  } =0
-  /* Move .rodata to the next L2 block to set unexecutable */
-  . = ALIGN (L2_SIZE);
-  PROVIDE (__rodata_start = .);
-  .rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
-  .rodata1        : { *(.rodata1) }
-  .eh_frame_hdr : { *(.eh_frame_hdr) }
-  .eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
-  .gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table
-  .gcc_except_table.*) }
-  /* These sections are generated by the Sun/Oracle C++ compiler.  */
-  .exception_ranges   : ONLY_IF_RO { *(.exception_ranges
-  .exception_ranges*) }
-  PROVIDE (__etext = .);
-  PROVIDE (_etext = .);
-  PROVIDE (etext = .);
-  /* Adjust the address for the data segment. Move .data to the next L2 block,
-     and .text and .rodata will be set readonly if needed. */
-  PROVIDE (_erodata = .);
-  . = ALIGN (L2_SIZE);
-  . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
-  /* Exception handling  */
-  .eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
-  .gcc_except_table   : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
-  .exception_ranges   : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
-  .got            : { *(.got) *(.igot) }
-  . = DATA_SEGMENT_RELRO_END (24, .);
-  .got.plt        : { *(.got.plt)  *(.igot.plt) }
-  .data           :
-  {
-    PROVIDE (__data_start = .);
-    *(.data .gnu.linkonce.d.*)
-    SORT(CONSTRUCTORS)
-  }
-  .data1          : { *(.data1) }
-
-  . = ALIGN(64);	/* COHERENCY_UNIT */
-  .data.cacheline_aligned :
-  {
-    *(.data.cacheline_aligned)
-  }
-  . = ALIGN(64);	/* COHERENCY_UNIT */
-  .data.read_mostly :
-  {
-    *(.data.read_mostly)
-  }
-  . = ALIGN(64);	/* COHERENCY_UNIT */
-
-  _edata = .; PROVIDE (edata = .);
-  . = .;
-  __bss_start = .;
-  __bss_start__ = .;
-  .bss            :
-  {
-    *(.dynbss)
-    *(.bss .bss.* .gnu.linkonce.b.*)
-    *(COMMON)
-    /* Align here to ensure that the .bss section occupies space up to
-       _end.  Align after .bss to ensure correct alignment even if the
-       .bss section disappears because there are no input sections.
-       FIXME: Why do we need it? When there is no .bss section, we don't
-       pad the .data section.  */
-    . = ALIGN(. != 0 ? 32 / 8 : 1);
-  }
-  _bss_end__ = . ; __bss_end__ = . ;
-  . = ALIGN(32 / 8);
-  . = ALIGN(32 / 8);
-  __end__ = . ;
-  _end = .; PROVIDE (end = .);
-  . = DATA_SEGMENT_END (.);
-  .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
-  .note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
+	.text :
+	{
+		PROVIDE (__kernel_text = .);
+		PROVIDE_HIDDEN (__eprol = .);
+		*(.text)
+		*(.text.unlikely .text.*_unlikely)
+		*(.text.exit .text.exit.*)
+		*(.text.startup .text.startup.*)
+		*(.text.hot .text.hot.*)
+		*(.stub .text.* .gnu.linkonce.t.*)
+		/* .gnu.warning sections are handled specially by elf32.em.  */
+	} =0
+
+	/* Move .rodata to the next L2 block to set unexecutable */
+	. = ALIGN (L2_SIZE);
+	PROVIDE (__rodata_start = .);
+	.rodata         : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
+	.rodata1        : { *(.rodata1) }
+	.eh_frame_hdr : { *(.eh_frame_hdr) }
+	.eh_frame       : ONLY_IF_RO { KEEP (*(.eh_frame)) }
+	.gcc_except_table   : ONLY_IF_RO { *(.gcc_except_table
+	.gcc_except_table.*) }
+
+	/* These sections are generated by the Sun/Oracle C++ compiler.  */
+	.exception_ranges   : ONLY_IF_RO { *(.exception_ranges
+	.exception_ranges*) }
+	PROVIDE (__etext = .);
+	PROVIDE (_etext = .);
+	PROVIDE (etext = .);
+
+	/*
+	 * Adjust the address for the data segment. Move .data to the next
+	 * L2 block, and .text and .rodata will be set readonly if needed.
+	 */
+	PROVIDE (_erodata = .);
+	. = ALIGN (L2_SIZE);
+	. = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE));
+	/* Exception handling  */
+	.eh_frame       : ONLY_IF_RW { KEEP (*(.eh_frame)) }
+	.gcc_except_table   : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) }
+	.exception_ranges   : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) }
+	.got            : { *(.got) *(.igot) }
+	. = DATA_SEGMENT_RELRO_END (24, .);
+	.got.plt        : { *(.got.plt)  *(.igot.plt) }
+	.data           :
+	{
+		PROVIDE (__data_start = .);
+		*(.data .gnu.linkonce.d.*)
+		SORT(CONSTRUCTORS)
+	}
+	.data1          : { *(.data1) }
+
+	. = ALIGN(64);	/* COHERENCY_UNIT */
+	.data.cacheline_aligned :
+	{
+		*(.data.cacheline_aligned)
+	}
+	. = ALIGN(64);	/* COHERENCY_UNIT */
+	.data.read_mostly :
+	{
+		*(.data.read_mostly)
+	}
+	. = ALIGN(64);	/* COHERENCY_UNIT */
+
+	_edata = .; PROVIDE (edata = .);
+	. = .;
+
+	__bss_start = .;
+	__bss_start__ = .;
+	.bss :
+	{
+		*(.dynbss)
+		*(.bss .bss.* .gnu.linkonce.b.*)
+		*(COMMON)
+
+		/*
+		 * Align here to ensure that the .bss section occupies space
+		 * up to _end. Align after .bss to ensure correct alignment
+		 * even if the .bss section disappears because there are no
+		 * input sections.
+		 *
+		 * FIXME: Why do we need it? When there is no .bss section,
+		 * we don't pad the .data section.
+		 */
+		. = ALIGN(. != 0 ? 32 / 8 : 1);
+	}
+	_bss_end__ = . ; __bss_end__ = . ;
+	. = ALIGN(32 / 8);
+	. = ALIGN(32 / 8);
+
+	__end__ = . ;
+	_end = .; PROVIDE (end = .);
+	. = DATA_SEGMENT_END (.);
+	.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }
+	.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }
 }

Reply via email to