-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add patches fixing ld bug linking arm tlsdesc relocs on 64-bit host
this is binutils issue #25062. without it, cross-ld crashes linking arm programs using tlsdesc if the host is 64-bit.
- Loading branch information
1 parent
684cb17
commit 02be46d
Showing
3 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c | ||
index bb53e039e3..d52c046979 100644 | ||
--- a/bfd/elf32-arm.c | ||
+++ b/bfd/elf32-arm.c | ||
@@ -12027,9 +12027,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, | ||
unsigned long data, insn; | ||
unsigned thumb; | ||
|
||
- data = bfd_get_32 (input_bfd, hit_data); | ||
+ data = bfd_get_signed_32 (input_bfd, hit_data); | ||
thumb = data & 1; | ||
- data &= ~1u; | ||
+ data &= ~1ul; | ||
|
||
if (thumb) | ||
{ |
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,16 @@ | ||
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c | ||
index bb53e039e3..d52c046979 100644 | ||
--- a/bfd/elf32-arm.c | ||
+++ b/bfd/elf32-arm.c | ||
@@ -12027,9 +12027,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, | ||
unsigned long data, insn; | ||
unsigned thumb; | ||
|
||
- data = bfd_get_32 (input_bfd, hit_data); | ||
+ data = bfd_get_signed_32 (input_bfd, hit_data); | ||
thumb = data & 1; | ||
- data &= ~1u; | ||
+ data &= ~1ul; | ||
|
||
if (thumb) | ||
{ |
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,16 @@ | ||
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c | ||
index bb53e039e3..d52c046979 100644 | ||
--- a/bfd/elf32-arm.c | ||
+++ b/bfd/elf32-arm.c | ||
@@ -12027,9 +12027,9 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, | ||
unsigned long data, insn; | ||
unsigned thumb; | ||
|
||
- data = bfd_get_32 (input_bfd, hit_data); | ||
+ data = bfd_get_signed_32 (input_bfd, hit_data); | ||
thumb = data & 1; | ||
- data &= ~1u; | ||
+ data &= ~1ul; | ||
|
||
if (thumb) | ||
{ |