aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 888d453..8ff4e05 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2022-06-22 Marcus Nilsson <brainbomb@gmail.com>
+
+ * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
+ when allocating space for relocations.
+
2022-06-21 Kumar N, Bhuvanendra via Binutils <Kavitha.Natarajan@amd.com>
* dwarf.h (struct debug_info): Add rnglists_base field.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 4c0a2a3..fe0d27d 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1401,7 +1401,7 @@ slurp_relr_relocs (Filedata * filedata,
size++;
}
- *relrsp = (bfd_vma *) xmalloc (size * sizeof (bfd_vma));
+ *relrsp = (bfd_vma *) malloc (size * sizeof (bfd_vma));
if (*relrsp == NULL)
{
free (relrs);