From 27b74dff72445d22b3ab8f9eb7d0eb62f7af2c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Mon, 20 Jun 2016 12:04:07 +0200 Subject: [PATCH] Try loading rct2 segments for x86-64 just like for i386 (#3922) This shifts focus away from illegal accesses to RCT2 memory to fixing up the pointers we use --- distribution/linux/ld_script_x86_64.xc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distribution/linux/ld_script_x86_64.xc b/distribution/linux/ld_script_x86_64.xc index b0b1fb94fe..5a80ecadc1 100644 --- a/distribution/linux/ld_script_x86_64.xc +++ b/distribution/linux/ld_script_x86_64.xc @@ -54,6 +54,8 @@ SECTIONS .plt : { *(.plt) *(.iplt) } .plt.got : { *(.plt.got) } .plt.bnd : { *(.plt.bnd) } +.rct2_text 0x401000 : { *(.rct2_text) } +.rct2_data : { *(.rct2_data) } .text : { *(.text.unlikely .text.*_unlikely .text.unlikely.*)