Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch .init/.fini/.ctors/.dtors should be irrelevant to k...
details: https://anonhg.NetBSD.org/src/rev/e88377887a47
branches: trunk
changeset: 340097:e88377887a47
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Sat Aug 22 23:47:34 2015 +0000
description:
.init/.fini/.ctors/.dtors should be irrelevant to kernels.
diffstat:
sys/arch/hppa/conf/ld.script | 4 +---
sys/arch/ia64/conf/kern.ldscript | 22 ----------------------
sys/arch/sparc/conf/kern.ldscript | 20 +-------------------
sys/arch/sparc64/conf/kern.ldscript | 20 +-------------------
sys/arch/sparc64/conf/kern32.ldscript | 20 +-------------------
5 files changed, 4 insertions(+), 82 deletions(-)
diffs (230 lines):
diff -r 688e59974d94 -r e88377887a47 sys/arch/hppa/conf/ld.script
--- a/sys/arch/hppa/conf/ld.script Sat Aug 22 23:19:55 2015 +0000
+++ b/sys/arch/hppa/conf/ld.script Sat Aug 22 23:47:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld.script,v 1.1 2014/02/24 07:23:42 skrll Exp $ */
+/* $NetBSD: ld.script,v 1.2 2015/08/22 23:47:34 uebayasi Exp $ */
/* $OpenBSD: ld.script,v 1.7 1999/12/17 07:02:38 mickey Exp $ */
@@ -49,8 +49,6 @@
. = ALIGN(4096);
edata = ABSOLUTE(.);
} = 0
- .ctors : { *(.ctors) }
- .dtors : { *(.dtors) }
__bss_start = ABSOLUTE(.);
/* .sbss : { *(.sbss) *(.scommon) } */
diff -r 688e59974d94 -r e88377887a47 sys/arch/ia64/conf/kern.ldscript
--- a/sys/arch/ia64/conf/kern.ldscript Sat Aug 22 23:19:55 2015 +0000
+++ b/sys/arch/ia64/conf/kern.ldscript Sat Aug 22 23:47:34 2015 +0000
@@ -14,13 +14,9 @@
.gnu.version : { *(.gnu.version) }
.gnu.version_d : { *(.gnu.version_d) }
.gnu.version_r : { *(.gnu.version_r) }
- .rela.init : { *(.rela.init) }
.rela.text : { *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) }
- .rela.fini : { *(.rela.fini) }
.rela.rodata : { *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) }
.rela.data : { *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) }
- .rela.ctors : { *(.rela.ctors) }
- .rela.dtors : { *(.rela.dtors) }
.rela.got : { *(.rela.got) }
.rela.sdata : { *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) }
.rela.sbss : { *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) }
@@ -30,10 +26,6 @@
.rela.plt : { *(.rela.plt) }
.rela.IA_64.pltoff : { *(.rela.IA_64.pltoff) }
PROVIDE (btext = .);
- .init :
- {
- *(.init)
- } =0x00300000010070000002000001000400
.plt : { *(.plt) }
.text :
{
@@ -41,10 +33,6 @@
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} =0x00300000010070000002000001000400
- .fini :
- {
- *(.fini)
- } =0x00300000010070000002000001000400
_etext = .;
PROVIDE (etext = .);
.rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) }
@@ -64,16 +52,6 @@
}
.data1 : { *(.data1) }
.dynamic : { *(.dynamic) }
- .ctors :
- {
- *(.ctors)
- *(SORT(.ctors.*))
- }
- .dtors :
- {
- *(.dtors)
- *(SORT(.dtors.*))
- }
. = ALIGN(16);
__gp = . + 0x200000;
.got : { *(.got.plt) *(.got) }
diff -r 688e59974d94 -r e88377887a47 sys/arch/sparc/conf/kern.ldscript
--- a/sys/arch/sparc/conf/kern.ldscript Sat Aug 22 23:19:55 2015 +0000
+++ b/sys/arch/sparc/conf/kern.ldscript Sat Aug 22 23:47:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.7 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.8 2015/08/22 23:47:34 uebayasi Exp $ */
/*
* Kernel linker script for NetBSD/sparc. This script is based on
@@ -36,19 +36,10 @@
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rela.ctors : { *(.rela.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rela.dtors : { *(.rela.dtors) }
- .rel.init : { *(.rel.init) }
- .rela.init : { *(.rela.init) }
- .rel.fini : { *(.rel.fini) }
- .rela.fini : { *(.rela.fini) }
.rel.bss : { *(.rel.bss) }
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
- .init : { *(.init) } =0
.text :
{
*(.text)
@@ -57,7 +48,6 @@
*(.gnu.warning)
*(.gnu.linkonce.t*)
} =0
- .fini : { *(.fini) } =0
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 : { *(.rodata1) }
_etext = .;
@@ -73,14 +63,6 @@
CONSTRUCTORS
}
.data1 : { *(.data1) }
- .ctors :
- {
- *(.ctors)
- }
- .dtors :
- {
- *(.dtors)
- }
.plt : { *(.plt) }
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
diff -r 688e59974d94 -r e88377887a47 sys/arch/sparc64/conf/kern.ldscript
--- a/sys/arch/sparc64/conf/kern.ldscript Sat Aug 22 23:19:55 2015 +0000
+++ b/sys/arch/sparc64/conf/kern.ldscript Sat Aug 22 23:47:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.13 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.14 2015/08/22 23:47:34 uebayasi Exp $ */
/*
* Kernel linker script for NetBSD/sparc64. This script is based on
@@ -35,19 +35,10 @@
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rela.ctors : { *(.rela.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rela.dtors : { *(.rela.dtors) }
- .rel.init : { *(.rel.init) }
- .rela.init : { *(.rela.init) }
- .rel.fini : { *(.rel.fini) }
- .rela.fini : { *(.rela.fini) }
.rel.bss : { *(.rel.bss) }
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
- .init : { *(.init) } =0x01000000
.text :
{
*(.text)
@@ -56,7 +47,6 @@
*(.gnu.warning)
*(.gnu.linkonce.t*)
} =0x01000000
- .fini : { *(.fini) } =0x01000000
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 : { *(.rodata1) }
_etext = .;
@@ -78,14 +68,6 @@
. = ALIGN(64); /* COHERENCY_UNIT */
.data.read_mostly : { *(.data.read_mostly) }
. = ALIGN(64); /* COHERENCY_UNIT */
- .ctors :
- {
- *(.ctors)
- }
- .dtors :
- {
- *(.dtors)
- }
.plt : { *(.plt) }
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
diff -r 688e59974d94 -r e88377887a47 sys/arch/sparc64/conf/kern32.ldscript
--- a/sys/arch/sparc64/conf/kern32.ldscript Sat Aug 22 23:19:55 2015 +0000
+++ b/sys/arch/sparc64/conf/kern32.ldscript Sat Aug 22 23:47:34 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern32.ldscript,v 1.12 2015/08/21 02:35:52 uebayasi Exp $ */
+/* $NetBSD: kern32.ldscript,v 1.13 2015/08/22 23:47:34 uebayasi Exp $ */
/*
* Kernel linker script for NetBSD/sparc. This script is based on
@@ -36,19 +36,10 @@
{ *(.rela.rodata) *(.rela.gnu.linkonce.r*) }
.rel.got : { *(.rel.got) }
.rela.got : { *(.rela.got) }
- .rel.ctors : { *(.rel.ctors) }
- .rela.ctors : { *(.rela.ctors) }
- .rel.dtors : { *(.rel.dtors) }
- .rela.dtors : { *(.rela.dtors) }
- .rel.init : { *(.rel.init) }
- .rela.init : { *(.rela.init) }
- .rel.fini : { *(.rel.fini) }
- .rela.fini : { *(.rela.fini) }
.rel.bss : { *(.rel.bss) }
.rela.bss : { *(.rela.bss) }
.rel.plt : { *(.rel.plt) }
.rela.plt : { *(.rela.plt) }
- .init : { *(.init) } =0
.text :
{
*(.text)
@@ -57,7 +48,6 @@
*(.gnu.warning)
*(.gnu.linkonce.t*)
} =0
- .fini : { *(.fini) } =0
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 : { *(.rodata1) }
_etext = .;
@@ -79,14 +69,6 @@
. = ALIGN(64); /* COHERENCY_UNIT */
.data.read_mostly : { *(.data.read_mostly) }
. = ALIGN(64); /* COHERENCY_UNIT */
- .ctors :
- {
- *(.ctors)
- }
- .dtors :
- {
- *(.dtors)
- }
.plt : { *(.plt) }
.got : { *(.got.plt) *(.got) }
.dynamic : { *(.dynamic) }
Home |
Main Index |
Thread Index |
Old Index