Hi.
I try to build 32bit (i386) shared library with -fPIC option.
Create new project "Library", set target Linux i386, add -fPIC and -Cg to custom options (think it's synonym), pass to linker option --warn-shared-textrel.
Linker say:
/usr/bin/ld: //usr/lib/fpc/3.2.2/units/i386-linux/rtl/system.o: warning: relocation in read-only section `.text.n_system_$$_fpsigaction$longint$psigactionrec$psigactionrec$$longint'
/usr/bin/ld: warning: creating a DT_TEXTREL in a shared object
"readelf -d" say
0x00000016 (TEXTREL) 0x0
0x0000001e (FLAGS) TEXTREL
I use Lazarus 3.99 64bit, FPC 3.2.2, Debian 10 64bit.
32bit FPC runtime builded from sources with default options.
I found Fpsigaction in ossysc.inc. Can`t understand, what a problem with it.
How to build 32bit .so without TEXTREL ?