[parisc-linux] Program counter from sigcontext, constructors
Carlos O'Donell
carlos@baldric.uwo.ca
Sat, 26 Apr 2003 12:08:29 -0400
> > spe170> cc -fPIC -g constr.c
> > spe170> ./a.out
> > Segmentation fault
>
> I'm unable to duplicate this on gsyprf11. I tried several gcc versions.
> I'm using glibc 2.3.1-15. ld is version 2.13.90 20030210.
>
Which versions did you try? :)
bash-2.05b$ gcc-3.0 -fPIC -g test-fpic.c; ./a.out
Segmentation fault
GNU ld version 2.13.90.0.18 20030121 Debian GNU/Linux
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.0.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc
--prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared
--with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long
--enable-nls --without-included-gettext --disable-checking
--enable-threads=posix --with-cpp-install-dir=bin --enable-objc-gc
hppa-linux
Thread model: posix
gcc version 3.0.4
Crashes under 3.0.4, looks like the possible PIC register bug we saw
with the double printf. I recommend you move to a newer gcc if possible.
I spent a few minutes looking at assembler output and %r19 looks to low
to be valid...
c.