aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2016-09-26 11:00:38 +0100
committerThomas Preud'homme <thomas.preudhomme@arm.com>2016-09-26 11:01:57 +0100
commit2d4550cd2922cf5b6115a74db721973e2d150cf8 (patch)
treee520fa20db8046d58c75b1ddfa0d1797064bef53
parent5a9c321e5c946de39a1b7728e28b70190f615dc4 (diff)
downloadgdb-2d4550cd2922cf5b6115a74db721973e2d150cf8.zip
gdb-2d4550cd2922cf5b6115a74db721973e2d150cf8.tar.gz
gdb-2d4550cd2922cf5b6115a74db721973e2d150cf8.tar.bz2
Fix for PURECODE readelf backport
2016-09-26 Andre Vieira <andre.simoesdiasvieira@arm.com> binutils/ * readelf.c (get_elf_section_flags): Fix readelf after purecode backport.
-rw-r--r--binutils/ChangeLog.arm5
-rw-r--r--binutils/readelf.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/binutils/ChangeLog.arm b/binutils/ChangeLog.arm
index cd0e336..59470c6 100644
--- a/binutils/ChangeLog.arm
+++ b/binutils/ChangeLog.arm
@@ -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.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 13a9500..e16abf0 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -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;