Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for veneers generated by linker for interworking #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ function(toolchain_deps toolchain_deps_dir toolchain_install_dir toolchain_suffi
patch -d <SOURCE_DIR> -p3 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0001-vita.patch
&& patch -d <SOURCE_DIR> -p1 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0002-fix-broken-reloc.patch
&& patch -d <SOURCE_DIR> -p3 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0003-fix-elf-vaddr.patch
&& patch -d <SOURCE_DIR> -p3 -t -N < ${PROJECT_SOURCE_DIR}/patches/binutils/0004-fix-interworking-veneers.patch
CONFIGURE_COMMAND ${compiler_flags} ${wrapper_command} <SOURCE_DIR>/configure
--build=${build_native}
--host=${toolchain_host}
Expand Down
13 changes: 13 additions & 0 deletions patches/binutils/0004-fix-interworking-veneers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/ld/emultempl/armelf.em b/ld/emultempl/armelf.em
index a9ac12d6..627c9086 100644
--- a/src/binutils/ld/emultempl/armelf.em
+++ b/src/binutils/ld/emultempl/armelf.em
@@ -41,7 +41,7 @@ static struct elf32_arm_params params =
BFD_ARM_STM32L4XX_FIX_NONE, /* stm32l4xx_fix */
0, /* no_enum_size_warning */
0, /* no_wchar_size_warning */
- 0, /* pic_veneer */
+ 1, /* pic_veneer */
-1, /* fix_cortex_a8 */
1, /* fix_arm1176 */
-1, /* merge_exidx_entries */