summaryrefslogtreecommitdiff
path: root/devel/gcc-msp430-ti-toolchain/files/patch-binutils_bfd_elflink.c
blob: bdd2ef8fa67612572afdf92786429faaba05dab9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- binutils-2.26/bfd/elflink.c.orig	2018-01-25 17:15:39.513265000 +0300
+++ binutils-2.26/bfd/elflink.c	2018-01-25 17:16:03.663426000 +0300
@@ -5058,7 +5058,7 @@
   len = strlen (name);
   copy = (char *) bfd_alloc (abfd, len);
   if (copy == NULL)
-    return (struct elf_link_hash_entry *) 0 - 1;
+    return (struct elf_link_hash_entry *)(intptr_t)-1;
 
   first = p - name + 1;
   memcpy (copy, name, first);
@@ -5156,7 +5156,7 @@
 	    }
 
 	  h = archive_symbol_lookup (abfd, info, symdef->name);
-	  if (h == (struct elf_link_hash_entry *) 0 - 1)
+	  if (h == (struct elf_link_hash_entry *)(intptr_t)-1)
 	    goto error_return;
 
 	  if (h == NULL)