aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 6cfdff4..2efbdda 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -397,8 +397,9 @@ elf_link_add_object_symbols (abfd, info)
struct bfd_elf_link_needed_list *n, **pn;
char *fnm, *anm;
- n = bfd_alloc (abfd,
- sizeof (struct bfd_elf_link_needed_list));
+ n = (struct bfd_elf_link_needed_list *)
+ bfd_alloc (abfd,
+ sizeof (struct bfd_elf_link_needed_list));
fnm = bfd_elf_string_from_elf_section (abfd, link,
dyn.d_un.d_val);
if (n == NULL || fnm == NULL)