Avoid assembler warnings from AArch64 constructor/destructor priorities.
commit41be51b050e5de25e711657bdc0b19a7e98a564a
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Sep 2017 13:08:28 +0000 (28 13:08 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 28 Sep 2017 13:08:28 +0000 (28 13:08 +0000)
tree45878272f006c8d8b063fce30c9a5010c4817f6f
parent10159355a6c1a4114ab5199dac09abadc04661e2
Avoid assembler warnings from AArch64 constructor/destructor priorities.

Many GCC tests fail for AArch64 with current binutils because of
assembler warnings of the form "Warning: ignoring incorrect section
type for .init_array.00100".  The same issue was fixed for ARM in
r247015 by using SECTION_NOTYPE when creating those sections; this
patch applies the same fix to AArch64.

Tested with no regressions with cross to aarch64-linux-gnu.

* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253252 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c