Page MenuHomeFreeBSD

D59620.diff
No OneTemporary

D59620.diff

diff --git a/sys/conf/ldscript.powerpc b/sys/conf/ldscript.powerpc
--- a/sys/conf/ldscript.powerpc
+++ b/sys/conf/ldscript.powerpc
@@ -93,6 +93,13 @@
PROVIDE_HIDDEN (__fini_array_end = .);
}
.dynamic : { *(.dynamic) } :kernel :dynamic
+ /* lld will put .data.rel.ro here if ldscript doesn't specify it, but then
+ .data.rel.ro will inherit PT_DYNAMIC from .dynamic section */
+ .data.rel.ro :
+ {
+ *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*)
+ *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*)
+ } :kernel
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
get relocated with -mrelocatable. Also put in the .fixup pointers.
The current compiler no longer needs this, but keep it around for 2.7.2 */
diff --git a/sys/conf/ldscript.powerpc64 b/sys/conf/ldscript.powerpc64
--- a/sys/conf/ldscript.powerpc64
+++ b/sys/conf/ldscript.powerpc64
@@ -119,6 +119,13 @@
PROVIDE_HIDDEN (__fini_array_end = .);
}
.dynamic : { *(.dynamic) } :kernel :dynamic
+ /* lld will put .data.rel.ro here if ldscript doesn't specify it, but then
+ .data.rel.ro will inherit PT_DYNAMIC from .dynamic section */
+ .data.rel.ro :
+ {
+ *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*)
+ *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*)
+ } :kernel
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
get relocated with -mrelocatable. Also put in the .fixup pointers.
The current compiler no longer needs this, but keep it around for 2.7.2 */
diff --git a/sys/conf/ldscript.powerpc64le b/sys/conf/ldscript.powerpc64le
--- a/sys/conf/ldscript.powerpc64le
+++ b/sys/conf/ldscript.powerpc64le
@@ -119,6 +119,13 @@
PROVIDE_HIDDEN (__fini_array_end = .);
}
.dynamic : { *(.dynamic) } :kernel :dynamic
+ /* lld will put .data.rel.ro here if ldscript doesn't specify it, but then
+ .data.rel.ro will inherit PT_DYNAMIC from .dynamic section */
+ .data.rel.ro :
+ {
+ *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*)
+ *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*)
+ } :kernel
/* Put .ctors and .dtors next to the .got2 section, so that the pointers
get relocated with -mrelocatable. Also put in the .fixup pointers.
The current compiler no longer needs this, but keep it around for 2.7.2 */

File Metadata

Mime Type
text/plain
Expires
Mon, Sep 14, 11:30 PM (6 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38875856
Default Alt Text
D59620.diff (2 KB)

Event Timeline