diff options
author | Ray Donnelly <mingw.android@gmail.com> | 2015-10-20 20:34:58 +0100 |
---|---|---|
committer | Ray Donnelly <mingw.android@gmail.com> | 2015-11-13 02:17:44 +0000 |
commit | 58e32a73192e7da7619021e3245f7a0d91167c18 (patch) | |
tree | d984057890f115720b095710cba62d6a55c29e60 /patches | |
parent | 2cf7a83fded92821a59279cf566fe85fafc35fc8 (diff) | |
download | crosstool-ng-58e32a73192e7da7619021e3245f7a0d91167c18.tar.gz crosstool-ng-58e32a73192e7da7619021e3245f7a0d91167c18.tar.bz2 crosstool-ng-58e32a73192e7da7619021e3245f7a0d91167c18.zip |
Cygwin: Define R_X86_64_JUMP_SLOT
This should be upstreamed to Cygwin ideally.
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
Diffstat (limited to 'patches')
-rwxr-xr-x | patches/linux/4.2.3/100-Define-R_X86_64_JUMP_SLOT-for-Cygwin.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/patches/linux/4.2.3/100-Define-R_X86_64_JUMP_SLOT-for-Cygwin.patch b/patches/linux/4.2.3/100-Define-R_X86_64_JUMP_SLOT-for-Cygwin.patch new file mode 100755 index 00000000..7b6ee5ab --- /dev/null +++ b/patches/linux/4.2.3/100-Define-R_X86_64_JUMP_SLOT-for-Cygwin.patch @@ -0,0 +1,16 @@ +--- linux-4.2/arch/x86/tools/relocs.c.orig 2015-10-20 22:36:03.075546600 +0100 ++++ linux-4.2/arch/x86/tools/relocs.c 2015-10-20 22:36:04.934950000 +0100 +@@ -187,6 +187,13 @@ + return name; + } + ++/* Hack for Cygwin */ ++#if ELF_BITS == 64 ++#if !defined(R_X86_64_JUMP_SLOT) && defined(R_X86_64_JMP_SLOT) ++#define R_X86_64_JUMP_SLOT R_X86_64_JMP_SLOT ++#endif ++#endif ++ + static const char *rel_type(unsigned type) + { + static const char *type_name[] = { |