From: Szabolcs Nagy Date: Mon, 8 Jul 2019 12:57:43 +0000 (+0100) Subject: aarch64: fix DT_AARCH64_VARIANT_PCS handling in readelf X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16ba30dcfaa33637fb06bf4e6ff8afe68cb6c810;p=thirdparty%2Fbinutils-gdb.git aarch64: fix DT_AARCH64_VARIANT_PCS handling in readelf backport commit 13acf03468d1e218c0a980ff6e6adaaac4bb5d1e failed to copy the changes in get_dynamic_type. this could cause build failure binutils/readelf.c:1800:1: warning: 'get_aarch64_dynamic_type' defined but not used [-Wunused-function] binutils/ChangeLog: 2019-07-08 Szabolcs Nagy * readelf.c (get_dynamic_type): Handle EM_AARCH64. --- diff --git a/binutils/readelf.c b/binutils/readelf.c index 28466e0cd75..6b4eb41aeea 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2180,6 +2180,9 @@ get_dynamic_type (Filedata * filedata, unsigned long type) switch (filedata->file_header.e_machine) { + case EM_AARCH64: + result = get_aarch64_dynamic_type (type); + break; case EM_MIPS: case EM_MIPS_RS3_LE: result = get_mips_dynamic_type (type);