diff options
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c index c965e687856..0dfca0c01c3 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1234,7 +1234,7 @@ write_relocs (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED) rp = &r->next; } - relocs = (arelent **) xcalloc (n, sizeof (arelent *)); + relocs = XCNEWVEC (arelent *, n); n = 0; r = my_reloc_list; |