[ARM] Fix type for .init_array.* and .fini_array.* sections
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
This commit is contained in:
parent
8a59d4660c
commit
633c65dda8
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user