This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
定义两个未调用的函数,
通过__attribute__((used)) 不起做用,依旧被优化掉(map中查询不到)
__attribute__((retain))起作用,map中可以查询到,
似乎不太一样,我想问的是attribute修饰属性中,使用GCC通用的used在eabi编码下不起作用,而是用retain就起作用,使用__attribute__((used)) 链接器仍会把未使用的符号优化掉,