Inline static data causes a section type conflict
问题 I want to put some user defined data into a custom section to be read by the application and an offline analyser at the same time. Assuming the following sample: const int* get_data() { __attribute__((section(".custom"))) static const int data = 123; return & data; } inline const int* inline_get_data() { __attribute__((section(".custom"))) static const int inline_data = 123; return & inline_data; } int main() { (void) get_data(); (void) inline_get_data(); return 0; } The value of data and