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 /ld | |
parent | be56871ee8f65c51b9eee611532ed036a71a72e0 (diff) | |
download | gdb-91f68a68f992e3f6c3da26c616b5257230bd1eec.zip gdb-91f68a68f992e3f6c3da26c616b5257230bd1eec.tar.gz gdb-91f68a68f992e3f6c3da26c616b5257230bd1eec.tar.bz2 |
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 'ld')
5 files changed, 13 insertions, 5 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 67aad57..94b6f47 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,11 @@ +2016-01-20 Mickael Guene <mickael.guene@st.com> + + * testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s: + Add 'y' attribute usage. + * testsuite/ld-arm/thumb1-noread-present-one-section.s: Likewise. + * testsuite/ld-arm/thumb1-noread-present-two-section.s: Likewise. + * testsuite/ld-arm/thumb1-input-section-flag-match.s: Likewise. + 2016-01-19 Nick Clifton <nickc@redhat.com> * testsuite/ld-elf/pr18735.d: Allow for extra symbols between diff --git a/ld/testsuite/ld-arm/thumb1-input-section-flag-match.s b/ld/testsuite/ld-arm/thumb1-input-section-flag-match.s index ac7c89f..6f1ad62 100644 --- a/ld/testsuite/ld-arm/thumb1-input-section-flag-match.s +++ b/ld/testsuite/ld-arm/thumb1-input-section-flag-match.s @@ -1,5 +1,5 @@ .text - .section .text.noread + .section .text.fetchonly,"axy",%progbits .arch armv6s-m .syntax unified .global _start diff --git a/ld/testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s b/ld/testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s index ac7c89f..5b14873 100644 --- a/ld/testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s +++ b/ld/testsuite/ld-arm/thumb1-noread-not-present-mixing-two-section.s @@ -1,5 +1,5 @@ .text - .section .text.noread + .section .text.noread,"axy",%progbits .arch armv6s-m .syntax unified .global _start diff --git a/ld/testsuite/ld-arm/thumb1-noread-present-one-section.s b/ld/testsuite/ld-arm/thumb1-noread-present-one-section.s index 4be37d2..203cfd5 100644 --- a/ld/testsuite/ld-arm/thumb1-noread-present-one-section.s +++ b/ld/testsuite/ld-arm/thumb1-noread-present-one-section.s @@ -1,5 +1,5 @@ .text - .section .text.noread + .section .text.fetchonly,"axy",%progbits .arch armv6s-m .syntax unified .global _start diff --git a/ld/testsuite/ld-arm/thumb1-noread-present-two-section.s b/ld/testsuite/ld-arm/thumb1-noread-present-two-section.s index a97f379..245ab25 100644 --- a/ld/testsuite/ld-arm/thumb1-noread-present-two-section.s +++ b/ld/testsuite/ld-arm/thumb1-noread-present-two-section.s @@ -1,5 +1,5 @@ .text - .section .text.noread.first + .section .text.fetchonly.first,"axy",%progbits .arch armv6s-m .syntax unified .global _start @@ -9,7 +9,7 @@ _start: bx lr .text - .section .text.noread.second + .section .text.fetchonly.second,"axy",%progbits .arch armv6s-m .syntax unified .global foo |