[Bug c/37611] invalid relocation R_386_GOTOFF when using protected function pointers

2008-09-22 Thread gernot dot hillier at siemens dot com
--- Comment #2 from gernot dot hillier at siemens dot com 2008-09-22 07:21 --- Created an attachment (id=16376) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16376&action=view) preprocessed version of the code triggering the bug -- http://gcc.gnu.org/bugzilla/show_bug

[Bug c/37611] invalid relocation R_386_GOTOFF when using protected function pointers

2008-09-22 Thread gernot dot hillier at siemens dot com
--- Comment #1 from gernot dot hillier at siemens dot com 2008-09-22 07:19 --- Created an attachment (id=16375) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16375&action=view) C file showing the problem See the body of f1 for the two cases. Using "f3( f2)" tri

[Bug c/37611] New: invalid relocation R_386_GOTOFF when using protected function pointers

2008-09-22 Thread gernot dot hillier at siemens dot com
est2.o: relocation R_386_GOTOFF against protected function `f2' can not be used when making a shared object /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status -- Summary: invalid relocation R_386_GOTOFF when using protected fu