Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171860442
D59620.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.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
+ /* 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
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 15, 3:51 AM (10 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38875856
Default Alt Text
D59620.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