diff options
author | thopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 09:44:18 +0000 |
---|---|---|
committer | thopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-04-20 09:44:18 +0000 |
commit | 7369309777f6d6e630fb7763bcd08a0317727e36 (patch) | |
tree | c1994605267867a579fe965cd8efe2ab773d62a1 /gcc/config/arm | |
parent | 6bac87c3e3c41d9d9822bf456e30c4bd36bef191 (diff) | |
download | gcc-7369309777f6d6e630fb7763bcd08a0317727e36.tar.gz |
[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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247015 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/arm')
-rw-r--r-- | gcc/config/arm/arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index a2d80cfd645..f3a6b64b168 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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; |