Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174550473
D59620.id187882.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D59620.id187882.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D59620: ldscript.powerpc*: Keep .data.rel.ro out of PT_DYNAMIC
Attached
Detach File
Event Timeline
Log In to Comment