static const struct bfd_elf_special_section special_sections_n[] =
{
{ STRING_COMMA_LEN (".noinit"), -2, SHT_NOBITS, SHF_ALLOC + SHF_WRITE },
- { STRING_COMMA_LEN (".note.GNU-stack"), 0, SHT_NOTE, 0 },
+ { STRING_COMMA_LEN (".note.GNU-stack"), 0, SHT_PROGBITS, 0 },
{ STRING_COMMA_LEN (".note"), -1, SHT_NOTE, 0 },
{ NULL, 0, 0, 0, 0 }
};
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);
- s = bfd_make_section_with_flags (link_info.input_bfds,
- ".note.GNU-stack", flags);
- if (s && bfd_get_flavour (s->owner) == bfd_target_elf_flavour)
- elf_section_type (s) = SHT_NOTE;
+ (void) bfd_make_section_with_flags (link_info.input_bfds,
+ ".note.GNU-stack", flags);
}
return;
}
+++ /dev/null
-#name: .note.GNU-stack using SHT_NOTE
-#source: empty.s
-#source: property-or-1.s
-#as: --noexecstack --generate-missing-build-notes=no
-#ld: -shared --script note2.t
-#readelf: --notes
-#target: [check_shared_lib_support]
-# Assembly source file for the HPPA assembler is renamed and modifed by
-# sed. mn10300 has relocations in .note.gnu.property section which
-# elf_parse_notes doesn't support.
-#notarget: am33_2.0-*-* hppa*-*-hpux* mn10300-*-*
-
-#...
-Displaying notes found in: .note
-[ ]+Owner[ ]+Data size[ ]+Description
- GNU 0x[0-9a-f]+ NT_GNU_PROPERTY_TYPE_0
- Properties: UINT32_OR .*
-#pass
+++ /dev/null
-SECTIONS
-{
- . = . + SIZEOF_HEADERS;
- .text : { *(.text) *(.plt) *(.rodata) *(.got*) }
- .note : { *(.note) *(.note.*) }
- /DISCARD/ : { *(*) }
-}