[PATCH v2] ARM: Replace catch of noread sections by section name by a section attribute letter.

mickael guene mickael.guene@st.com
Tue Jan 19 09:53:00 GMT 2016


Hi all,

  This is a proposal for a patch that replaces the catch of noread
sections by section name by a section attribute letter.
  I have taken changes from Terry Guo's patch[1] for documentation and
for section-execute-only.s test.

  No regressions have been observed for arm-linux-gnueabi,
arm-linux-gnueabihf, arm-none-eabi, arm-none-nacl,
armeb-linux-gnueabihf, arm-netbsdelf and arm-vxworks targets
on 64-bit Linux host.

  In this v2 we replace, in readelf section output, display
of processor specific letter 'p' with letter 'y' for section
with SHF_ARM_NOREAD section flag.

[1]: https://sourceware.org/ml/binutils/2014-04/msg00181.html

Changelogs:

bfd/ChangeLog:

2016-01-12 Mickael Guene <mickael.guene@st.com>

     * elf32-arm.c ((elf32_arm_special_sections): Remove catch of noread
     section using '.text.noread' pattern.

gas/ChangeLog:

2016-01-12 Mickael Guene <mickael.guene@st.com>

     * 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:

2016-01-12  Terry Guo  <terry.guo@arm.com>

     * gas/arm/section-execute-only.s: New test case.
     * gas/arm/section-execute-only.d: Expected output.

ld/testsuite/ChangeLog:

2016-01-12 Mickael Guene <mickael.guene@st.com>

     * 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:

2016-01-19 Mickael Guene <mickael.guene@st.com>

     * 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Replace-NOREAD-setting-using-section-name-with-secti.patch
Type: text/x-patch
Size: 10205 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20160119/e93cc1d7/attachment.bin>


More information about the Binutils mailing list