-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create 0003-fix-elf-vaddr.patch * Fixed temporary elf size for vita. Related to this issue : vitasdk/vita-toolchain#150 * Add 0003-fix-elf-vaddr.patch for binutils * Remove comment
- Loading branch information
1 parent
9bdfd12
commit 0a7a0ef
Showing
3 changed files
with
27 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
diff -Nru a/src/binutils/ld/scripttempl/elf.sc b/src/binutils/ld/scripttempl/elf.sc | ||
--- a/src/binutils/ld/scripttempl/elf.sc 2018-07-11 17:43:55.000000000 +0200 | ||
+++ b/src/binutils/ld/scripttempl/elf.sc 2018-12-29 19:53:29.747662203 +0100 | ||
@@ -580,6 +580,8 @@ | ||
${CREATE_SHLIB+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}} | ||
${CREATE_PIE+${RELOCATING+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};}} | ||
|
||
--- a/src/binutils/ld/scripttempl/elf.sc | ||
+++ b/src/binutils/ld/scripttempl/elf.sc | ||
@@ -579,7 +579,25 @@ | ||
${CREATE_SHLIB-${CREATE_PIE-${RELOCATING+. = ${DATA_ADDR-${DATA_SEGMENT_ALIGN}};}}} | ||
${CREATE_SHLIB+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};} | ||
${CREATE_PIE+. = ${SHLIB_DATA_ADDR-${DATA_SEGMENT_ALIGN}};} | ||
- | ||
+ /* SCE self module info size */ | ||
+ . = . + 0x5C; | ||
+ /* SCE self module_proc_param size */ | ||
+ . = . + 0x34; | ||
+ /* SCE self info rsvd size(import table, etc...) */ | ||
+ . = . + 0x7000; | ||
+ /* Hacky hackity hack. Need this because otherwise data segment is not aligned enough. */ | ||
+ . = ALIGN(0x10000); | ||
+ . = ALIGN(0x8000); | ||
/* Exception handling */ | ||
.eh_frame ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) ${RELOCATING+*(.eh_frame.*)} } | ||
.gnu_extab ${RELOCATING-0} : ONLY_IF_RW { *(.gnu_extab) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -Nru a/src/binutils/ld/emulparams/armelf.sh b/src/binutils/ld/emulparams/armelf.sh | ||
--- a/src/binutils/ld/emulparams/armelf.sh | ||
+++ b/src/binutils/ld/emulparams/armelf.sh | ||
@@ -3,7 +3,7 @@ | ||
OUTPUT_FORMAT="elf32-littlearm" | ||
BIG_OUTPUT_FORMAT="elf32-bigarm" | ||
LITTLE_OUTPUT_FORMAT="elf32-littlearm" | ||
-TEXT_START_ADDR=0x8000 | ||
+TEXT_START_ADDR=0x81000000 | ||
TEMPLATE_NAME=elf | ||
EXTRA_EM_FILE=armelf | ||
OTHER_TEXT_SECTIONS='*(.glue_7t) *(.glue_7) *(.vfp11_veneer) *(.v4_bx)' |