From b05d8df5f82bc9451b6e2a6e4054342169b2c07b Mon Sep 17 00:00:00 2001 From: Mateusz Tabaka <tab.debugteam@gmail.com> Date: Tue, 29 Sep 2020 18:58:35 +0200 Subject: [PATCH] Restore previous load address for ld_so Current value gives us 0x1234000 - 0x400000 ~ 14 MB for executable, which is too low for certain programs. --- src/ld_so/ld_script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld_so/ld_script b/src/ld_so/ld_script index 1ea6287d..5f05fed7 100644 --- a/src/ld_so/ld_script +++ b/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) } -- GitLab