From: Kyrylo Tkachov Date: Tue, 17 Jul 2018 12:53:42 +0000 (+0000) Subject: Avoid assembler warnings from AArch64 constructor/destructor priorities. X-Git-Tag: releases/gcc-6.5.0~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=407a30151ab87d7bc5ac41bd819338bbff752bad;p=thirdparty%2Fgcc.git Avoid assembler warnings from AArch64 constructor/destructor priorities. 2018-07-17 Kyrylo Tkachov Backport from mainline PR target/84168 2017-09-28 Joseph Myers * 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. From-SVN: r262822 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06a26eab9a86..eb5e99967877 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2018-07-17 Kyrylo Tkachov + + Backport from mainline + PR target/84168 + 2017-09-28 Joseph Myers + + * 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 PR target/84829 diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index cce8cf89b3c0..0d2ff4f2d0c5 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -5417,7 +5417,7 @@ aarch64_elf_asm_constructor (rtx symbol, int priority) 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); @@ -5434,7 +5434,7 @@ aarch64_elf_asm_destructor (rtx symbol, int priority) 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);