Hi,

 

First, our CFLAGS is here.

 

-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed
-fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb -Wa,-mimplicit-it=thumb
-mapcs -mno-sched-prolog -mabi=aapcs-linux -Uarm -fno-common -fpic

 

It was occurred with the message. (/usr/lib/libnfc-common-lib.so.1: unexpected reloc type 0x03)

 

Second,

-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Wl,--as-needed
-fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb -Wa,-mimplicit-it=thumb
-mapcs -mno-sched-prolog -fno-common -fpic

 

It was occurred too. (/usr/lib/libnfc-common-lib.so.1: unexpected reloc type 0x03)

 

Thank you

Kwanwoo Nam

 

------- Original Message -------

Sender : Kyungmin Park<kmpark@infradead.org>

Date : 2012-11-13 20:33 (GMT+09:00)

Title : Re: unexpected reloc type 0x03 error with gcc-4.6.4 (2012.10 version)

 

To Mr. Nam & Ilya,

Can you share the compiler option?

Thank you,
Kyungmin Park

On 11/13/12, Mans Rullgard wrote:
> On 13 November 2012 05:12, Kyungmin Park wrote:
>> Hi Michael,
>>
>> Recently I tested the linaro toolchain gcc-4.6 version and try to
>> build our codes.
>> it's okay to compile the codes, but when launching the binary it
>> occures following messages.
>>
>> /usr/lib/libnfc-common-lib.so.1: unexpected reloc type 0x03
>>
>> I tested it both "hard float" and "soft float". the result is same.
>>
>> do you have any clues?
>
> Relocation type 3 is R_ARM_REL32 which is a static relocation not
> allowed in shared objects.  How did you create the shared lib?
> Make sure you compile all the code going into it with -fPIC.
>
> --
> Mans Rullgard / mru
>