summaryrefslogtreecommitdiffstats
path: root/binutils-2.23.2-aarch64-em.patch
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.23.2-aarch64-em.patch')
-rw-r--r--binutils-2.23.2-aarch64-em.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/binutils-2.23.2-aarch64-em.patch b/binutils-2.23.2-aarch64-em.patch
new file mode 100644
index 0000000..f4aae4c
--- /dev/null
+++ b/binutils-2.23.2-aarch64-em.patch
@@ -0,0 +1,47 @@
+*** ../binutils-2.23.2.orig/ld/emultempl/aarch64elf.em 2013-06-05 09:46:17.499278813 +0100
+--- ld/emultempl/aarch64elf.em 2013-06-05 09:54:36.981292659 +0100
+*************** gld${EMULATION_NAME}_after_allocation (v
+*** 264,270 ****
+ }
+
+ static void
+! gld${EMULATION_NAME}_finish (void)
+ {
+ if (! link_info.relocatable)
+ {
+--- 264,270 ----
+ }
+
+ static void
+! gld${EMULATION_NAME}_local_finish (void)
+ {
+ if (! link_info.relocatable)
+ {
+*************** gld${EMULATION_NAME}_finish (void)
+*** 276,282 ****
+ }
+ }
+
+! finish_default ();
+ }
+
+ /* This is a convenient point to tell BFD about target specific flags.
+--- 276,282 ----
+ }
+ }
+
+! gld${EMULATION_NAME}_finish ();
+ }
+
+ /* This is a convenient point to tell BFD about target specific flags.
+*************** LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS=
+*** 413,416 ****
+ LDEMUL_BEFORE_PARSE=gld"${EMULATION_NAME}"_before_parse
+
+ # Call the extra arm-elf function
+! LDEMUL_FINISH=gld${EMULATION_NAME}_finish
+--- 413,416 ----
+ LDEMUL_BEFORE_PARSE=gld"${EMULATION_NAME}"_before_parse
+
+ # Call the extra arm-elf function
+! LDEMUL_FINISH=gld${EMULATION_NAME}_local_finish