Skip to content

Commit 659bd65

Browse files
authored
Revert "Fix vita elf vaddr and size (#78)" (#80)
This reverts commit 0a7a0ef.
1 parent 0a7a0ef commit 659bd65

3 files changed

Lines changed: 7 additions & 27 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ function(toolchain_deps toolchain_deps_dir toolchain_install_dir toolchain_suffi
303303
PATCH_COMMAND
304304
patch -d <SOURCE_DIR> -p3 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0001-vita.patch
305305
&& patch -d <SOURCE_DIR> -p1 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0002-fix-broken-reloc.patch
306-
&& patch -d <SOURCE_DIR> -p3 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0003-fix-elf-vaddr.patch
307306
CONFIGURE_COMMAND ${compiler_flags} ${wrapper_command} <SOURCE_DIR>/configure
308307
--build=${build_native}
309308
--host=${toolchain_host}

patches/binutils/0001-vita.patch

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
diff -Nru a/src/binutils/ld/scripttempl/elf.sc b/src/binutils/ld/scripttempl/elf.sc
2-
--- a/src/binutils/ld/scripttempl/elf.sc
3-
+++ b/src/binutils/ld/scripttempl/elf.sc
4-
@@ -579,7 +579,25 @@
5-
${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}}
6-
${CREATE_SHLIB+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}
7-
${CREATE_PIE+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}
8-
-
9-
+ /* SCE self module info size */
10-
+ . = . + 0x5C;
11-
+ /* SCE self module_proc_param size */
12-
+ . = . + 0x34;
13-
+ /* SCE self info rsvd size(import table, etc...) */
14-
+ . = . + 0x7000;
2+
--- a/src/binutils/ld/scripttempl/elf.sc 2018-07-11 17:43:55.000000000 +0200
3+
+++ b/src/binutils/ld/scripttempl/elf.sc 2018-12-29 19:53:29.747662203 +0100
4+
@@ -580,6 +580,8 @@
5+
${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
6+
${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}
7+
158
+ /* Hacky hackity hack. Need this because otherwise data segment is not aligned enough. */
16-
+ . = ALIGN(0x8000);
9+
+ . = ALIGN(0x10000);
1710
/* Exception handling */
1811
.eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) ${RELOCATING+*(.eh_frame.*)} }
1912
.gnu_extab ${RELOCATING-0} : ONLY_IF_RW { *(.gnu_extab) }

patches/binutils/0003-fix-elf-vaddr.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)