From 16ba30dcfaa33637fb06bf4e6ff8afe68cb6c810 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 8 Jul 2019 13:57:43 +0100 Subject: [PATCH] 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. --- binutils/readelf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binutils/readelf.c b/binutils/readelf.c index 28466e0cd7..6b4eb41aee 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); -- 2.17.1