Revert "Toolchain: Load x64 executables at a higher address"
Now that the lower pages can be unmapped and more of the virtual
address range is available to us, we can actually use the default
mapping address of x86_64 again.
This reverts commit 292398b585
.
This commit is contained in:
parent
d2b87419ac
commit
2df56f840f
Notes:
sideshowbarker
2024-07-17 10:02:26 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/2df56f840f Pull-request: https://github.com/SerenityOS/serenity/pull/14189 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/linusg
1 changed files with 3 additions and 14 deletions
|
@ -123,7 +123,7 @@ index c7acf3f1..19982e51 100644
|
|||
targ_extra_emuls=elf_x86_64
|
||||
;;
|
||||
+i[3-7]86-*-serenity*) targ_emul=elf_i386
|
||||
+ targ64_extra_emuls="elf_x86_64_serenity elf_x86_64"
|
||||
+ targ64_extra_emuls="elf_x86_64"
|
||||
+ ;;
|
||||
i[3-7]86-*-sysv[45]*) targ_emul=elf_i386
|
||||
targ_extra_emuls=elf_iamcu
|
||||
|
@ -132,20 +132,9 @@ index c7acf3f1..19982e51 100644
|
|||
x86_64-*-redox*) targ_emul=elf_x86_64
|
||||
targ_extra_emuls=elf_i386
|
||||
;;
|
||||
+x86_64-*-serenity*) targ_emul=elf_x86_64_serenity
|
||||
+ targ_extra_emuls="elf_x86_64 elf_i386"
|
||||
+x86_64-*-serenity*) targ_emul=elf_x86_64
|
||||
+ targ_extra_emuls="elf_i386"
|
||||
+ ;;
|
||||
x86_64-*-solaris2*) targ_emul=elf_x86_64_sol2
|
||||
targ_extra_emuls="elf_x86_64 elf_i386_sol2 elf_i386_ldso elf_i386 elf_iamcu elf_l1om elf_k1om"
|
||||
targ_extra_libpath=$targ_extra_emuls
|
||||
diff --git a/ld/emulparams/elf_x86_64_serenity.sh b/ld/emulparams/elf_x86_64_serenity.sh
|
||||
new file mode 100644
|
||||
index 00000000..973b3b2a
|
||||
--- /dev/null
|
||||
+++ b/ld/emulparams/elf_x86_64_serenity.sh
|
||||
@@ -0,0 +1,2 @@
|
||||
+. ${srcdir}/emulparams/elf_x86_64.sh
|
||||
+TEXT_START_ADDR=0x08200000
|
||||
--
|
||||
2.35.1
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue