Hi,

 

Here is our LDFLAGS.

-Wl,--rpath=/usr/lib -Wl,--as-needed

 

And i try to build with your guide.

without : -mapcs -fno-common
and -fPIC instead of -fpic

 

But it is failed with same the message. (/usr/lib/libnfc-common-lib.so.1: unexpected reloc type 0x03)

 

Thank you,

Kwanwoo Nam.

 

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

Sender : Michael Hope<michael.hope@linaro.org>

Date : 2012-11-14 06:43 (GMT+09:00)

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

 

On 14 November 2012 00:48, ³²°ü¿ì wrote:
>
> 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)


Hi there.  I don't know the cause but I'm suspicious of a few things.
Could you try the following builds?

The most likely:
* Without -mapcs
* Without  -fstack-protector --param=ssp-buffer-size=4

Less likely:
* Without -fno-common
* With -fPIC instead of -fpic (should make no difference on ARM)

Could you also send through the linker command line?  It would be
great to get a full log up on pastebin or similar.

-- Michael