summaryrefslogtreecommitdiff
path: root/i386/ldscript
diff options
context:
space:
mode:
Diffstat (limited to 'i386/ldscript')
-rw-r--r--i386/ldscript16
1 files changed, 16 insertions, 0 deletions
diff --git a/i386/ldscript b/i386/ldscript
index ddbbf910..79f25ea5 100644
--- a/i386/ldscript
+++ b/i386/ldscript
@@ -16,6 +16,14 @@ SECTIONS
AT (_START_MAP)
{
*(.text.start)
+
+ /* Separate pages for what should be mapped along userland */
+ . = ALIGN (CONSTANT(MAXPAGESIZE));
+ PROVIDE (_sharedtext_start = .);
+ *(.text.shared)
+ . = ALIGN (CONSTANT(MAXPAGESIZE));
+ PROVIDE (_sharedtext_end = .);
+
*(.text .stub .text.* .gnu.linkonce.t.*)
*(.text.unlikely .text.*_unlikely)
KEEP (*(.text.*personality*))
@@ -138,6 +146,14 @@ SECTIONS
.got.plt : { *(.got.plt) *(.igot.plt) }
.data :
{
+
+ /* Separate pages for what should be mapped along userland */
+ . = ALIGN (CONSTANT(MAXPAGESIZE));
+ PROVIDE (_shareddata_start = .);
+ *(.data.shared)
+ . = ALIGN (CONSTANT(MAXPAGESIZE));
+ PROVIDE (_shareddata_end = .);
+
*(.data .data.* .gnu.linkonce.d.*)
SORT(CONSTRUCTORS)
}