]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix for PURECODE readelf backport
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 26 Sep 2016 10:00:38 +0000 (11:00 +0100)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 26 Sep 2016 10:01:57 +0000 (11:01 +0100)
2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>

binutils/
* readelf.c (get_elf_section_flags): Fix readelf after purecode
backport.

binutils/ChangeLog.arm
binutils/readelf.c

index cd0e336fba97a8fcc19af0e3ae7dfe000ba7554d..59470c61cea1f0821612547c1c5380d1113af4ec 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
+
+       * readelf.c (get_elf_section_flags): Fix readelf after purecode
+       backport.
+
 2016-09-23  Andre Vieria  <andre.simoesdiasvieira@arm.com>
 
        * objdump.c (dump_section_header): Handle SEC_ELF_PURECODE.
index 13a95008b75fb52bf627fdc743e27e7a22a3240d..e16abf01389e5895378540a4be9143aeb7efdfd6 100644 (file)
@@ -5273,7 +5273,7 @@ get_elf_section_flags (bfd_vma sh_flags)
       /* 19 */ { STRING_COMMA_LEN ("ORDERED") },
       /* 20 */ { STRING_COMMA_LEN ("COMPRESSED") },
       /* ARM specific.  */
-      /* 22 */ { STRING_COMMA_LEN ("ARM_PURECODE") },
+      /* 21 */ { STRING_COMMA_LEN ("ARM_PURECODE") },
     };
 
   if (do_section_details)
@@ -5347,7 +5347,7 @@ get_elf_section_flags (bfd_vma sh_flags)
                case EM_ARM:
                  switch (flag)
                    {
-                   case SHF_ARM_PURECODE: sindex = 22; break;
+                   case SHF_ARM_PURECODE: sindex = 21; break;
                    default: break;
                    }
                  break;