cancel
Showing results for 
Search instead for 
Did you mean: 

Simulator linker error on Linux: relocation R_X86_64_32 against symbol

yavada
Associate

Hello,

I'm trying to build a simulator on Linux x64 platform. But unfortunately, getting a weird error.

 

 

/usr/bin/ld: ../Middlewares/ST/touchgfx/lib/linux/libtouchgfx.a(AbstractPartition.o): relocation R_X86_64_32 against symbol `_ZTVN8touchgfx17AbstractPartitionE' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: failed to set dynamic section sizes: bad value

 

 

Seems that library was not compiled with -fPIC. Or, I'm doing something wrong.

TouchGFX v4.24.1

Please help with this. 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @yavada,

Have you tried following the instructions that are available here ? 

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

3 REPLIES 3

Hello @yavada,

Have you tried following the instructions that are available here ? 

Mohammad MORADI
ST Software Developer | TouchGFX

Thank you Mohammad,

Missed that part.

Had to add "-no-pie" linker option.

Now it is linking OK.

You're very welcome!

Glad to hear it is working now :D

Mohammad MORADI
ST Software Developer | TouchGFX