The decl parameter in default_elf_asm_named_section is actually used. Applied as obvious after an arm-none-eabi build.
Ramana 2015-10-06 Ramana Radhakrishnan <ramana.radhakrish...@arm.com> * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED from the decl parameter.
Index: gcc/varasm.c =================================================================== --- gcc/varasm.c (revision 228536) +++ gcc/varasm.c (working copy) @@ -6233,7 +6233,7 @@ void default_elf_asm_named_section (const char *name, unsigned int flags, - tree decl ATTRIBUTE_UNUSED) + tree decl) { char flagchars[10], *f = flagchars;