ARM中出现static initialisation of '' using address of '' may ca
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/06/17 02:29:35
ARM中出现static initialisation of '' using address of '' may cause link failure -ropi警告,如何修改
举个简单的例子:void func1(char a){}
typedef struct wx{
void (*func)(char a);
int a;
int b;} WX;
const WX ly={func1,2,0};
编译时会出现ARM中出现static initialisation of 'ly' using address of 'func1' may cause link failure -ropi警告,请问如何修改才能消除这种警告.
举个简单的例子:void func1(char a){}
typedef struct wx{
void (*func)(char a);
int a;
int b;} WX;
const WX ly={func1,2,0};
编译时会出现ARM中出现static initialisation of 'ly' using address of 'func1' may cause link failure -ropi警告,请问如何修改才能消除这种警告.
![ARM中出现static initialisation of '' using address of '' may ca](/uploads/image/z/5382328-40-8.jpg?t=ARM%E4%B8%AD%E5%87%BA%E7%8E%B0static+initialisation+of+%27%27+using+address+of+%27%27+may+ca)
void func1(char a){}
typedef struct wx{
void (*func)(char a);
int a;
int b;} WX;
const WX ly={func1,2,0};
int main(){
func1('a');
return 0;
}
编译arm-linux-gcc-4.4.3 -Wall -g -o functest functest.c 未出现警告和错误.
typedef struct wx{
void (*func)(char a);
int a;
int b;} WX;
const WX ly={func1,2,0};
int main(){
func1('a');
return 0;
}
编译arm-linux-gcc-4.4.3 -Wall -g -o functest functest.c 未出现警告和错误.
ARM中出现static initialisation of '' using address of '' may ca
the arm of the
一开机就出现access violation at address 00000000.read of address 0
开机时出现Access violation at address 00000000.Read of address 00
英语翻译Any party may give written notice of chance of address i
address of staying翻译
1.address of sender
out of term address
FEED-OF-THE-ARM是什么意思?
three basic types of static stresses
of may》
a break from using cell phones may be good for all of us 怎么翻