You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems GCC ignores section attributes for static members of a template class. This causes the interned strings to be stored in .rodata instead of the custom interned sections .interned_strings. This is currently supported by clang (at least from version 10), but GCC silently ignores the section attribute and does not even provide a warning message.
It seems
GCCignores section attributes for static members of a template class. This causes the interned strings to be stored in.rodatainstead of the custom interned sections.interned_strings. This is currently supported byclang(at least from version 10), butGCCsilently ignores the section attribute and does not even provide a warning message.https://stackoverflow.com/questions/36279162/section-attribute-of-a-function-template-is-silently-ignored-in-gcc
https://stackoverflow.com/questions/54040665/gcc-section-attribute-ignored-in-a-templated-function
https://stackoverflow.com/questions/42513904/is-attribute-section-something-on-a-static-member-of-a-template-class
https://answers.launchpad.net/gcc-arm-embedded/+question/615576
It appears to be reported as a bug in
GCCtoo:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70435