We have an issue with TEXTRELs. Is it compiler bug?
$ cat foo.c
extern int foo(int i);
int foo(int i){
return i+i;
}
$ pgcc -V
pgcc 11.10-0 64-bit target on x86-64 Linux -tp nehalem
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2011, STMicroelectronics, Inc. All Rights Reserved.
$ pgcc -c -fPIC foo.c
$ ld -shared foo.o -o libfoo.so
$ readelf -a libfoo.so | grep TEXTREL
0x0000000000000016 (TEXTREL) 0x0
$ eu-findtextrel libfoo.so
the file containing the function ‘’ might not be compiled with -fpic/-fPIC