From 4491a7c1aa356887a783c451a5e6cc708112b483 Mon Sep 17 00:00:00 2001 From: Marcus Nilsson Date: Wed, 22 Jun 2022 10:36:03 +0200 Subject: readelf: replace xmalloc with malloc in slurp_relr_relocs Using xmalloc makes the null check redundant since failing allocation will exit the program. Instead use malloc and let the error be conveyed up the call chain. --- binutils/ChangeLog | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'binutils/ChangeLog') 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 + + * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc + when allocating space for relocations. + 2022-06-21 Kumar N, Bhuvanendra via Binutils * dwarf.h (struct debug_info): Add rnglists_base field. -- cgit v1.1