I presume you build with the newer --abi=eabi . In that case, all sections which are never referenced are automatically removed. This automatic removal happens in the linker. It occurs regardless of the compiler optimization level. My guess is that all of the variables are defined in the same section. If none of them are ever used, the linker removes the section. For one way to disable this behavior, please search the C28x compiler manual for the sub-chapter titled The RETAIN Pragma . Thanks and regards, -George
↧