------- Comment #2 from pluto at agmk dot net 2006-08-25 14:38 ------- really? please look at this.
[1] cross build on linux machine: sparc-sun-solaris2.9-g++ backtracexx.cpp -o libbacktracexx.so -shared -ldl -Wall -Werror -pedantic \ -O3 -fpic -funwind-tables -fno-exceptions -fno-rtti sparc-sun-solaris2.9-g++ example.cpp -o example ./libbacktracexx.so -Wall -Werror -pedantic \ -O1 -funwind-tables -Wl,--export-dynamic [2] run on soalris: $ uname -a SunOS hermes 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-1500 $ ./example 0xff381118 : backtracexx::scan()+0x20 from /home/pawels/backtracexx/libbacktracexx.so 0x10bb0 : zoo()+0xc from /home/pawels/backtracexx/example 0x10ad4 : bar(void (*)())+0x4 from /home/pawels/backtracexx/example 0x10aec : foo()+0x8 from /home/pawels/backtracexx/example 0x10b00 : main+0x4 from /home/pawels/backtracexx/example 0x10968 : _start+0x5c from /home/pawels/backtracexx/example $ file example libbacktracexx.so example: ELF 32-bit MSB executable, SPARC, version 1 (SYSV), dynamically linked (uses shared libs), not stripped libbacktracexx.so: ELF 32-bit MSB shared object, SPARC, version 1 (SYSV), not stripped without -Wl,--export-dynamic i get: $ ./example 0xff381118 : backtracexx::scan()+0x20 from /home/pawels/backtracexx/libbacktracexx.so 0x10aa4 : _init+0x2c0 from /home/pawels/backtracexx/example 0x109c8 : _init+0x1e4 from /home/pawels/backtracexx/example 0x109e0 : _init+0x1fc from /home/pawels/backtracexx/example 0x109f4 : _init+0x210 from /home/pawels/backtracexx/example 0x1085c : _init+0x78 from /home/pawels/backtracexx/example cross-binutils for sparc-solaris supports --export-dynamic. -- pluto at agmk dot net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28845