Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136929166
D19574.id55573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19574.id55573.diff
View Options
Index: head/sys/conf/ldscript.powerpc64
===================================================================
--- head/sys/conf/ldscript.powerpc64
+++ head/sys/conf/ldscript.powerpc64
@@ -6,12 +6,17 @@
ENTRY(__start)
SEARCH_DIR(/usr/lib);
PROVIDE (__stack = 0);
+PHDRS
+{
+ text PT_LOAD ;
+ dynamic PT_DYNAMIC ;
+}
SECTIONS
{
/* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
. = kernbase - 0x100;
- .kboot : { *(.text.kboot) }
+ .kboot : { *(.text.kboot) } :text
/* Read-only sections, merged into text segment: */
. = kernbase;
@@ -19,6 +24,7 @@
.text :
{
+ *(.glink)
*(.text)
*(.stub)
/* .gnu.warning sections are handled specially by elf32.em. */
@@ -29,7 +35,6 @@
PROVIDE (etext = .);
/* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
- .interpX : { *(.interp) } : NONE
/DISCARD/ : { *(.interp) }
/* Also delete notes */
@@ -95,7 +100,7 @@
. = ALIGN(4096);
.got : ALIGN(8) { __tocbase = .; *(.got .toc) }
- .dynamic : { *(.dynamic) }
+ .dynamic : { *(.dynamic) } :text :dynamic
/* 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
Fri, Nov 21, 5:18 PM (6 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25779533
Default Alt Text
D19574.id55573.diff (1 KB)
Attached To
Mode
D19574: powerpc64: Fix kernel ldscript to only emit one PT_LOAD segment
Attached
Detach File
Event Timeline
Log In to Comment