[PATCH, GCC, stage4] Fix type for .init_array.* and .fini_array.* sections

Thomas Preudhomme thomas.preudhomme@foss.arm.com
Wed Apr 19 09:29:00 GMT 2017


Stage 4 ping?

Best regards,

Thomas

On 11/04/17 18:35, Thomas Preudhomme wrote:
> Hi,
>
> Several tests started failing for ARM targets (eg. gcc.dg/initpri1.c)
> after change 6f9dbcd42f2cf034a9a21f46842c08d2e88449db in binutils. This
> is because the non-default priority init_array and fini_array sections
> are not created with NOTYPE flag as is the case for default priority
> init_array and fini_array sections (see default_section_type_flags in
> varasm.c for instance). This patch fixes the issue.
>
> ChangeLog entry is as follows:
>
> *** gcc/ChangeLog ***
>
> 2017-04-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
>
>     * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
>     priority .init_array and .fini_array section with SECTION_NOTYPE
>     flag.
>
> Testing: with this patch test gcc.dg/initpri1.c succeeds but fails
> without.
>
> Is this ok for stage4?
>
> Best regards,
>
> Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_init_fini_section_type.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170419/11b6c768/attachment.bin>


More information about the Gcc-patches mailing list