[ARM] Fix type for .init_array.* and .fini_array.* sections
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Thu, 20 Apr 2017 09:44:18 +0000 (09:44 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 20 Apr 2017 09:44:18 +0000 (09:44 +0000)
2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    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

gcc/ChangeLog
gcc/config/arm/arm.c

index e650e01f5a7c36e55f13add81b0c31d52aef666d..32f632052d7aa0ef12ff956a0419c9e1e8f227e9 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-20  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.
+
 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
 
        PR middle-end/80423
index a2d80cfd645928fb8b3178a8e0c7173adce5d598..f3a6b64b16896e82d6e7a66726a929f0572542d9 100644 (file)
@@ -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;