This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
If gcc supports visibility, it will optimize protected symbol. In case of normal call to protected function, it won't do PIC since it won't get overridden at the run-time. However, i386 linker doesn't do the right thing: # make cc -fPIC -c -o foo.o foo.c ld -shared -o libfoo.so foo.o readelf -d libfoo.so | grep TEXTREL; \ if [ $? = 0 ]; then exit 1; else exit 0; fi 0x00000016 (TEXTREL) 0x0 make: *** [all] Error 1 This protected symbol handling is psABI-dependent and has to be done based on the relocation type. H.J.
Attachment:
bug.tar.gz
Description: GNU Zip compressed data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |