diff options
author | Mickael Guene <mickael.guene@st.com> | 2016-01-20 12:53:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-01-20 12:53:50 +0000 |
commit | 91f68a68f992e3f6c3da26c616b5257230bd1eec (patch) | |
tree | 9e549da0d8aaacafb6231069425241f003357a14 /gas/doc/c-arm.texi | |
parent | be56871ee8f65c51b9eee611532ed036a71a72e0 (diff) | |
download | binutils-gdb-91f68a68f992e3f6c3da26c616b5257230bd1eec.tar.gz |
Add support for an ARM specific 'y' section attribute flag to mark the section as NOREAD.
bfd/ChangeLog:
* elf32-arm.c ((elf32_arm_special_sections): Remove catch of noread
section using '.text.noread' pattern.
gas/ChangeLog:
* config/obj-elf.c (obj_elf_change_section) : Allow arm section with
SHF_ARM_NOREAD section flag.
* config/tc-arm.h (md_elf_section_letter) : Implement this hook to
handle letter 'y'.
(arm_elf_section_letter) : Declare it.
* config/tc-arm.c (arm_elf_section_letter): Handle letter 'y' to set
SHF_ARM_NOREAD section flag.
* doc/c-arm.texi (ARM section attribute 'y'): Document it.
gas/testsuite/ChangeLog:
* gas/arm/section-execute-only.s: New test case.
* gas/arm/section-execute-only.d: Expected output.
ld/testsuite/ChangeLog:
* ld-arm/thumb1-noread-not-present-mixing-two-section.s: Add 'y'
attribute usage.
* ld-arm/thumb1-noread-present-one-section.s: Likewise.
* ld-arm/thumb1-noread-present-two-section.s: Likewise.
* ld-arm/thumb1-input-section-flag-match.s: Likewise.
binutils/ChangeLog:
* readelf.c (get_elf_section_flags): Display y letter for section
with SHF_ARM_NOREAD section flag in readelf section output.
(process_section_headers): Add y letter in readelf section output
key mapping for ARM architecture.
Diffstat (limited to 'gas/doc/c-arm.texi')
-rw-r--r-- | gas/doc/c-arm.texi | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index 4ee6a21598a..886b02496e8 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -23,6 +23,7 @@ * ARM Opcodes:: Opcodes * ARM Mapping Symbols:: Mapping Symbols * ARM Unwinding Tutorial:: Unwinding +* ARM Section Attribute:: Section Attribute @end menu @node ARM Options @@ -1237,3 +1238,15 @@ code that calls functions which may throw exceptions. If you need to know more about the object-file format used to represent unwind information, you may consult the @cite{Exception Handling ABI for the ARM Architecture} available from @uref{http://infocenter.arm.com}. + +@node ARM Section Attribute +@section Section Attribute + +@cindex ARM section attribute +@table @code +@item y +This letter specifies a text section with NOREAD attribute for +hardware that supports execute-only memory region. If not supported +by hardware a section with this attribute will be treated as normal +text section. +@end table |