From: Thomas Preud'homme Date: Thu, 20 Apr 2017 09:44:18 +0000 (+0000) Subject: [ARM] Fix type for .init_array.* and .fini_array.* sections X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=633c65dda889eb887fb6ce3b04cefdeb4a69b0b3;p=gcc.git [ARM] Fix type for .init_array.* and .fini_array.* sections 2017-04-20 Thomas Preud'homme gcc/ * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default priority .init_array and .fini_array section with SECTION_NOTYPE flag. From-SVN: r247015 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e650e01f5a7..32f632052d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-04-20 Thomas Preud'homme + + * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default + priority .init_array and .fini_array section with SECTION_NOTYPE + flag. + 2017-04-20 Jakub Jelinek PR middle-end/80423 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index a2d80cfd645..f3a6b64b168 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -22593,7 +22593,7 @@ arm_elf_asm_cdtor (rtx symbol, int priority, bool is_ctor) sprintf (buf, "%s.%.5u", is_ctor ? ".init_array" : ".fini_array", priority); - s = get_section (buf, SECTION_WRITE, NULL_TREE); + s = get_section (buf, SECTION_WRITE | SECTION_NOTYPE, NULL_TREE); } else if (is_ctor) s = ctors_section;