https://sourceware.org/bugzilla/show_bug.cgi?id=28841
--- Comment #1 from Fangrui Song <i at maskray dot me> --- (I wrote `.note.package (SHT_NOTE)` in a hurry. It's better to introduce a keyword) The current proposal is TYPE=<value>, +@item TYPE = @var{type} +Set the section type to the integer @var{type}. When generating an ELF +output file, type names @code{SHT_PROGBITS}, @code{SHT_STRTAB}, +@code{SHT_NOTE}, @code{SHT_INIT_ARRAY}, @code{SHT_FINI_ARRAY}, and +@code{SHT_PREINIT_ARRAY} are also allowed for @var{type}. It is the +user's responsibility to ensure that any special requirements of the +section type are met. Examples: SECTIONS { progbits (TYPE=SHT_PROGBITS) : { BYTE(1) } strtab (TYPE = SHT_STRTAB) : { BYTE(0) } note (TYPE =SHT_NOTE) : { BYTE(8) } init_array (TYPE= 14) : { QUAD(14) } fini_array ( TYPE=SHT_FINI_ARRAY) : { QUAD(15) } preinit_array (TYPE=SHT_PREINIT_ARRAY ) : { QUAD(16) } } Discussion: https://sourceware.org/pipermail/binutils/2022-February/119600.html -- You are receiving this mail because: You are on the CC list for the bug.