Page MenuHomeFreeBSD

D59620.id187882.diff
No OneTemporary

D59620.id187882.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
+ /* When .got2 is empty and ldscript doesn't specify .data.rel.ro,
+ .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
+ /* When .got2 is empty and ldscript doesn't specify .data.rel.ro,
+ .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
+ /* When .got2 is empty and ldscript doesn't specify .data.rel.ro,
+ .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, Oct 5, 2:41 AM (57 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40014661
Default Alt Text
D59620.id187882.diff (2 KB)

Event Timeline