|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/emulparams and ld/emulparams
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/emultempl and ld/emultempl
|
|
|
8101c5 |
diff -cp ../binutils-2.24.orig/ld/ldlang.c ld/ldlang.c
|
|
|
8101c5 |
*** ../binutils-2.24.orig/ld/ldlang.c 2014-05-09 10:35:04.589504928 +0100
|
|
|
8101c5 |
--- ld/ldlang.c 2014-05-09 10:35:55.515661478 +0100
|
|
|
8101c5 |
*************** lang_add_output_format (const char *form
|
|
|
8101c5 |
*** 7096,7101 ****
|
|
|
8101c5 |
--- 7096,7113 ----
|
|
|
8101c5 |
&& little != NULL)
|
|
|
8101c5 |
format = little;
|
|
|
8101c5 |
|
|
|
8101c5 |
+ if (getenv ("LD_FORCE_LE") != NULL)
|
|
|
8101c5 |
+ {
|
|
|
8101c5 |
+ if (strcmp (format, "elf64-powerpc") == 0)
|
|
|
8101c5 |
+ format = "elf64-powerpcle";
|
|
|
8101c5 |
+ else if (strcmp (format, "elf32-powerpc") == 0)
|
|
|
8101c5 |
+ format = "elf32-powerpcle";
|
|
|
8101c5 |
+ else if (strcmp (format, "elf64-big") == 0)
|
|
|
8101c5 |
+ format = "elf64-little";
|
|
|
8101c5 |
+ else if (strcmp (format, "elf32-big") == 0)
|
|
|
8101c5 |
+ format = "elf32-little";
|
|
|
8101c5 |
+ }
|
|
|
8101c5 |
+
|
|
|
8101c5 |
output_target = format;
|
|
|
8101c5 |
}
|
|
|
8101c5 |
}
|
|
|
8101c5 |
Only in ld: ldlang.c.orig
|
|
|
8101c5 |
diff -cp ../binutils-2.24.orig/ld/ldmain.c ld/ldmain.c
|
|
|
8101c5 |
*** ../binutils-2.24.orig/ld/ldmain.c 2014-05-09 10:35:04.593504941 +0100
|
|
|
8101c5 |
--- ld/ldmain.c 2014-05-09 10:35:55.515661478 +0100
|
|
|
8101c5 |
*************** get_emulation (int argc, char **argv)
|
|
|
8101c5 |
*** 603,608 ****
|
|
|
8101c5 |
--- 603,620 ----
|
|
|
8101c5 |
}
|
|
|
8101c5 |
}
|
|
|
8101c5 |
|
|
|
8101c5 |
+ if ((strncmp (emulation, "elf64ppc", 8) == 0
|
|
|
8101c5 |
+ || strncmp (emulation, "elf32ppc", 8) == 0)
|
|
|
8101c5 |
+ && getenv ("LD_FORCE_LE") != NULL)
|
|
|
8101c5 |
+ {
|
|
|
8101c5 |
+ size_t len = strlen (emulation);
|
|
|
8101c5 |
+ char *le = xmalloc (len + 2);
|
|
|
8101c5 |
+ memcpy (le, emulation, 5);
|
|
|
8101c5 |
+ le[5] = 'l';
|
|
|
8101c5 |
+ memcpy (le + 6, emulation + 5, len - 4);
|
|
|
8101c5 |
+ emulation = le;
|
|
|
8101c5 |
+ }
|
|
|
8101c5 |
+
|
|
|
8101c5 |
return emulation;
|
|
|
8101c5 |
}
|
|
|
8101c5 |
|
|
|
8101c5 |
Only in ld: ldmain.c.orig
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/ldscripts and ld/ldscripts
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/.libs and ld/.libs
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/po and ld/po
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/scripttempl and ld/scripttempl
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/testsuite and ld/testsuite
|
|
|
8101c5 |
Common subdirectories: ../binutils-2.24.orig/ld/tmpdir and ld/tmpdir
|