https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84274
Bug ID: 84274 Summary: [feature request] mbind attribute Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jeff.science at gmail dot com Target Milestone: --- https://sourceware.org/ml/binutils/2017-03/msg00261.html describes as-of-yet-unimplemented attributes to control the placement of data into new variants of bss, data, etc. > The goal is to place data in special memory sections via > attribute. To place an uninitialized variable, foo, in a > mbind bss section with memory type 1: > > int foo __attribute__ ((mbind(0x1))); > > To place a variable, foo, in a mbind data section with > memory type 2: > > int foo __attribute__ ((mbind(0x2))) = 1; > > To place a read-only variable, foo, in a mbind rodata > section with memory type 3: > > const int foo __attribute__ ((mbind(0x3))) = 1; This is a feature request to support these in GCC, since the underlying functionality is supported (https://fossies.org/diffs/binutils/2.28_vs_2.29/include/ChangeLog-diff.html). # Additional references https://sourceware.org/ml/gnu-gabi/2017-q1/msg00000.html