diff options
author | Andre Vieria <andre.simoesdiasvieira@arm.com> | 2016-07-05 11:28:46 +0100 |
---|---|---|
committer | Richard Earnshaw <Richard.Earnshaw@arm.com> | 2016-07-05 11:28:46 +0100 |
commit | f0728ee368f217f2473798ad7ccfe9feae4412ce (patch) | |
tree | f4c515f664e489872f0f802579ab9a34e4a4f562 /binutils | |
parent | 1753ed681125949b081376dd97056a3f2930e7d7 (diff) | |
download | gdb-f0728ee368f217f2473798ad7ccfe9feae4412ce.zip gdb-f0728ee368f217f2473798ad7ccfe9feae4412ce.tar.gz gdb-f0728ee368f217f2473798ad7ccfe9feae4412ce.tar.bz2 |
[ARM] Change noread to purecode.
bfd/ChangeLog
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
* bfd-in2.h (SEC_ELF_NOREAD): Rename to ...
(SEC_ELF_PURECODE): ... this.
* elf32-arm.c (elf32_arm_post_process_headers): Rename SEC_ELF_NOREAD
to SEC_ELF_NOREAD.
(elf32_arm_fake_sections): Likewise.
(elf_32_arm_section_flags): Likewise.
(elf_32_arm_lookup_section_flags): Likewise.
* section.c (SEC_ELF_NOREAD): Rename to ...
(SEC_ELF_PURECODE): ... this.
binutils/ChangeLog
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
* objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
to SEC_ELF_NOREAD.
* readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
(process_section_headers): Rename noread to purecode.
* section.c (SEC_ELF_NOREAD): Rename to ...
(SEC_ELF_PURECODE): ... this.
include/ChangeLog
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
* elf/arm.h (SHF_ARM_NOREAD): Rename to ...
(SHF_ARM_PURECODE): ... this.
ld/ChangeLog
2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
* testsuite/ld-arm/arm_noread.ld: Renamed to ...
testsuite/ld-arm/arm_purecode.ld: ... this, and replaced
all noread's by purecode.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/ChangeLog | 11 | ||||
-rw-r--r-- | binutils/objdump.c | 7 | ||||
-rw-r--r-- | binutils/readelf.c | 8 |
3 files changed, 16 insertions, 10 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4108b78..a854e6a 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,14 @@ +2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com> + + * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD + to SEC_ELF_NOREAD. + * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to + ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE. + (process_section_headers): Rename noread to purecode. + + * section.c (SEC_ELF_NOREAD): Rename to ... + (SEC_ELF_PURECODE): ... this. + 2016-07-01 Nick Clifton <nickc@redhat.com> * prdbg.c (pr_enum_type): Use a buffer big enough to hold an diff --git a/binutils/objdump.c b/binutils/objdump.c index bf9c592..29d2276 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -493,12 +493,7 @@ dump_section_header (bfd *abfd, asection *section, PF (SEC_COFF_NOREAD, "NOREAD"); } else if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) - { - /* Note - sections can have both the READONLY and NOREAD attributes - set. In this case the NOREAD takes precedence, but we report both - since the user may need to know that both bits are set. */ - PF (SEC_ELF_NOREAD, "NOREAD"); - } + PF (SEC_ELF_PURECODE, "PURECODE"); PF (SEC_THREAD_LOCAL, "THREAD_LOCAL"); PF (SEC_GROUP, "GROUP"); if (bfd_get_arch (abfd) == bfd_arch_mep) diff --git a/binutils/readelf.c b/binutils/readelf.c index 274ddd1..4c7ad4c 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -5399,7 +5399,7 @@ get_elf_section_flags (bfd_vma sh_flags) /* 20 */ { STRING_COMMA_LEN ("COMPRESSED") }, /* ARM specific. */ /* 21 */ { STRING_COMMA_LEN ("ENTRYSECT") }, - /* 22 */ { STRING_COMMA_LEN ("ARM_NOREAD") }, + /* 22 */ { STRING_COMMA_LEN ("ARM_PURECODE") }, /* 23 */ { STRING_COMMA_LEN ("COMDEF") } }; @@ -5475,7 +5475,7 @@ get_elf_section_flags (bfd_vma sh_flags) switch (flag) { case SHF_ENTRYSECT: sindex = 21; break; - case SHF_ARM_NOREAD: sindex = 22; break; + case SHF_ARM_PURECODE: sindex = 22; break; case SHF_COMDEF: sindex = 23; break; default: break; } @@ -5534,7 +5534,7 @@ get_elf_section_flags (bfd_vma sh_flags) && flag == SHF_X86_64_LARGE) *p = 'l'; else if (elf_header.e_machine == EM_ARM - && flag == SHF_ARM_NOREAD) + && flag == SHF_ARM_PURECODE) *p = 'y'; else if (flag & SHF_MASKOS) { @@ -6118,7 +6118,7 @@ process_section_headers (FILE * file) || elf_header.e_machine == EM_K1OM) printf (_("l (large), ")); else if (elf_header.e_machine == EM_ARM) - printf (_("y (noread), ")); + printf (_("y (purecode), ")); printf ("p (processor specific)\n"); } |