summaryrefslogtreecommitdiff
path: root/patches/binutils.txt
diff options
context:
space:
mode:
Diffstat (limited to 'patches/binutils.txt')
-rw-r--r--patches/binutils.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/binutils.txt b/patches/binutils.txt
new file mode 100644
index 0000000..b2dcff7
--- /dev/null
+++ b/patches/binutils.txt
@@ -0,0 +1,17 @@
+diff --git a/ld/emulparams/elf_x86_64.sh b/ld/emulparams/elf_x86_64.sh
+index 466da2c4..806cd413 100644
+--- a/ld/emulparams/elf_x86_64.sh
++++ b/ld/emulparams/elf_x86_64.sh
+@@ -14,9 +14,9 @@ SCRIPT_NAME=elf
+ ELFSIZE=64
+ OUTPUT_FORMAT="elf64-x86-64"
+ NO_REL_RELOCS=yes
+-TEXT_START_ADDR=0x400000
+-MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+-COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
++TEXT_START_ADDR=0x200000
++MAXPAGESIZE="0x1000"
++COMMONPAGESIZE="0x1000"
+ ARCH="i386:x86-64"
+ MACHINE=
+ TEMPLATE_NAME=elf