Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102162749
D43066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D43066.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
@@ -86,7 +86,7 @@
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 */
PROVIDE (_GOT2_START_ = .);
- .got2 : { *(.got2) }
+ .got2 : { *(.got2) } :kernel
PROVIDE (__CTOR_LIST__ = .);
.ctors : { *(.ctors) }
PROVIDE (__CTOR_END__ = .);
@@ -100,7 +100,7 @@
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
- .sdata : { *(.sdata) } :kernel
+ .sdata : { *(.sdata) }
_edata = .;
PROVIDE (edata = .);
.sbss :
diff --git a/sys/conf/ldscript.powerpc64 b/sys/conf/ldscript.powerpc64
--- a/sys/conf/ldscript.powerpc64
+++ b/sys/conf/ldscript.powerpc64
@@ -111,7 +111,7 @@
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 */
PROVIDE (_GOT2_START_ = .);
- .got2 : { *(.got2) }
+ .got2 : { *(.got2) } :kernel
PROVIDE (__CTOR_LIST__ = .);
.ctors : { *(.ctors) }
PROVIDE (__CTOR_END__ = .);
@@ -125,7 +125,7 @@
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
- .sdata : { *(.sdata) } :kernel
+ .sdata : { *(.sdata) }
_edata = .;
PROVIDE (edata = .);
.sbss :
diff --git a/sys/conf/ldscript.powerpc64le b/sys/conf/ldscript.powerpc64le
--- a/sys/conf/ldscript.powerpc64le
+++ b/sys/conf/ldscript.powerpc64le
@@ -7,15 +7,15 @@
PROVIDE (__stack = 0);
PHDRS
{
- text PT_LOAD ;
- dynamic PT_DYNAMIC ;
+ kernel PT_LOAD;
+ dynamic PT_DYNAMIC;
}
SECTIONS
{
/* Low-address wrapper for bootloaders (kexec/kboot) that can't parse ELF */
. = kernbase - 0x100;
- .kboot : { *(.text.kboot) } :text
+ .kboot : { *(.text.kboot) } :kernel
/* Read-only sections, merged into text segment: */
. = kernbase;
@@ -36,9 +36,6 @@
/* Do not emit PT_INTERP section, which confuses some loaders (kexec-lite) */
/DISCARD/ : { *(.interp) }
- /* Also delete notes */
- /DISCARD/ : { *(.note.*) }
-
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
@@ -50,6 +47,10 @@
*(.note.gnu.build-id)
PROVIDE (__build_id_end = .);
}
+
+ /* Do not emit any additional notes. */
+ /DISCARD/ : { *(.note.*) }
+
.rela.text :
{ *(.rela.text) *(.rela.gnu.linkonce.t*) }
.rela.data :
@@ -105,12 +106,12 @@
.got : ALIGN(8) { __tocbase = .; *(.got) }
.toc : ALIGN(8) { *(.toc) }
- .dynamic : { *(.dynamic) } :text :dynamic
+ .dynamic : { *(.dynamic) } :kernel :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 */
PROVIDE (_GOT2_START_ = .);
- .got2 : { *(.got2) }
+ .got2 : { *(.got2) } :kernel
PROVIDE (__CTOR_LIST__ = .);
.ctors : { *(.ctors) }
PROVIDE (__CTOR_END__ = .);
diff --git a/sys/conf/ldscript.powerpcspe b/sys/conf/ldscript.powerpcspe
--- a/sys/conf/ldscript.powerpcspe
+++ b/sys/conf/ldscript.powerpcspe
@@ -87,7 +87,7 @@
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 */
PROVIDE (_GOT2_START_ = .);
- .got2 : { *(.got2) }
+ .got2 : { *(.got2) } :kernel
PROVIDE (__CTOR_LIST__ = .);
.ctors : { *(.ctors) }
PROVIDE (__CTOR_END__ = .);
@@ -101,7 +101,7 @@
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */
- .sdata : { *(.sdata) } :kernel
+ .sdata : { *(.sdata) }
_edata = .;
PROVIDE (edata = .);
.sbss :
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 9:38 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14555857
Default Alt Text
D43066.diff (4 KB)
Attached To
Mode
D43066: ldscript.powerpc*: Only put .dynamic in PT_DYNAMIC
Attached
Detach File
Event Timeline
Log In to Comment