]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
aarch64: fix DT_AARCH64_VARIANT_PCS handling in readelf
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 8 Jul 2019 12:57:43 +0000 (13:57 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 8 Jul 2019 14:18:20 +0000 (15:18 +0100)
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  <szabolcs.nagy@arm.com>

* readelf.c (get_dynamic_type): Handle EM_AARCH64.

binutils/readelf.c

index 28466e0cd754b6a244fda1041eee7a46878072f6..6b4eb41aeeab802a3745570e504cb5b9839096b6 100644 (file)
@@ -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);