Reputation: 45
I am cross-compiling my code by arm-unknown-linux-gnueabi and during compilation lot of below warnings can be seen
Unknown EABI object attribute 44
Is above warnings can be ignored or am I missing some and what does this warning mean?
arm-whatever-gcc --version and arm-whatever-as --version is
ubuntu@ubuntu:~/crosstool-ng/crosstool-ng-1.14.0$ arm-unknown-linux-gnueabi-gcc --version arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.14.0) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ubuntu@ubuntu:~/crosstool-ng/crosstool-ng-1.14.0$ arm-unknown-linux-gnueabi-as --version GNU assembler (crosstool-NG 1.14.0) 2.19.1 Copyright 2007 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `arm-unknown-linux-gnueabi'.
Upvotes: 2
Views: 859
Reputation: 71576
unsigned int fun ( unsigned int x )
{
return(x+0x1000);
}
arm-whatever-gcc -O2 -c --save-temps so.c -o so.o
cat so.s
cat so.s
.cpu arm7tdmi
.fpu softvfp
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 1
.eabi_attribute 30, 2
.eabi_attribute 34, 0
.eabi_attribute 18, 4
.file "so.c"
.text
.align 2
.global fun
.type fun, %function
Your binutils doesnt know on one of the .eabi_attribute lines produced by the compiler.
arm-whatever-gcc -O2 -S so.c
also works to see the eabi_attribute directive
Upvotes: 2