+2018-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ Backport from mainline
+ PR target/84168
+ 2017-09-28 Joseph Myers <joseph@codesourcery.com>
+
+ * config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
+ (aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
+ when creating .init_array and .fini_array sections with priority
+ specified.
+
2018-07-12 Richard Biener <rguenther@suse.de>
PR target/84829
section *s;
char buf[18];
snprintf (buf, sizeof (buf), ".init_array.%.5u", priority);
- s = get_section (buf, SECTION_WRITE, NULL);
+ s = get_section (buf, SECTION_WRITE | SECTION_NOTYPE, NULL);
switch_to_section (s);
assemble_align (POINTER_SIZE);
assemble_aligned_integer (POINTER_BYTES, symbol);
section *s;
char buf[18];
snprintf (buf, sizeof (buf), ".fini_array.%.5u", priority);
- s = get_section (buf, SECTION_WRITE, NULL);
+ s = get_section (buf, SECTION_WRITE | SECTION_NOTYPE, NULL);
switch_to_section (s);
assemble_align (POINTER_SIZE);
assemble_aligned_integer (POINTER_BYTES, symbol);