9.2.1 --add-flags-code=,--add-flags-data=,--add-flags-const=

Add section attributes to all code, data, or PSV (.const) type sections.

Each option can be repeated or have a comma-separated list of additions. The flag names are the same as you would find in the assembler documentation, with one exception: 'name()' is used to prepend a name to the currently-provided section name.

--add-flags-code=attr1,attr2,attr3
--add-flags-code=attr1 --add-flags-code=attr2 --add-flags-code=attr3
--add-flags-code=name(fred)

=name(x) will prepend the current section name with x. This allows 'sequentially' mapped sections to be mapped without having to modify the linker script, i.e., to add 'boot' to all text type sections:

--add-flags-code=name(remapped) --add-flags-code=boot

Any incompatible section will be flagged.