Like all .note and .note.* sections it should be SHT_NOTE, not
SHT_PROGBITS.
gnustack = subseg_new (".note.GNU-stack", 0);
bfd_set_section_flags (gnustack,
SEC_READONLY | (flag_execstack ? SEC_CODE : 0));
-
+ elf_section_type (gnustack) = SHT_NOTE;
}
#endif
effect. Instead we create a .note.GNU-stack section in much the
same way as the assembler does with its --[no]execstack option. */
flagword flags = SEC_READONLY | (link_info.execstack ? SEC_CODE : 0);
- (void) bfd_make_section_with_flags (link_info.input_bfds,
- ".note.GNU-stack", flags);
+ s = bfd_make_section_with_flags (link_info.input_bfds,
+ ".note.GNU-stack", flags);
+ if (s)
+ elf_section_type (s) = SHT_NOTE;
}
return;
}