> Ok for google branches. > > 1) document the difference of this option with -grecord-gcc-switches > (this one only record codegen related options, and recorded in debug > section), and with -frecord-gcc-switches? > 2) may be better to use option name: -frecord-gcc-switches-in-object
Sections whose name begins with ".note" are usually SHT_NOTE sections, and have a specific format. It might be better to choose different names (like Sri was asked to do with callgraph annotations). -cary