Parcourir la source

Restore previous load address for ld_so

Current value gives us 0x1234000 - 0x400000 ~ 14 MB for executable,
which is too low for certain programs.
Mateusz Tabaka il y a 4 ans
Parent
commit
b05d8df5f8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/ld_so/ld_script

+ 1 - 1
src/ld_so/ld_script

@@ -21,7 +21,7 @@ SEARCH_DIR("/usr/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
-  PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x12340000)); . = SEGMENT_START("text-segment", 0x1234000) + SIZEOF_HEADERS;
+  PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x400000)); . = SEGMENT_START("text-segment", 0x20000000) + SIZEOF_HEADERS;
   .interp         : { *(.interp) }
   .note.gnu.build-id  : { *(.note.gnu.build-id) }
   .hash           : { *(.hash) }