PLT Problems with Wine/Sparc
Austin English
austinenglish at gmail.com
Mon Dec 26 23:47:58 CST 2011
2011/12/26 André Hentschel <nerv at dawncrow.de>:
> Hi,
> thanks to Austin i could work on our sparc port and it seems i have it it a workable state,
> the remaining problem is that somehow the plt entry to libwine is fixed up wrong.
> I know most people on the list don't know much about sparc, so wild guesses are all i want.
>
> --- snip ---
> readelf -r:
> 0002c988 00003315 R_SPARC_JMP_SLOT 00000000 wine_dbg_log + 0
>
> objdump -D:
> 0002c988 <wine_dbg_log at plt>:
> 2c988: 03 00 00 78 sethi %hi(0x1e000), %g1
> 2c98c: 30 bf ff e1 b,a 2c910 <_PROCEDURE_LINKAGE_TABLE_>
> 2c990: 01 00 00 00 nop
>
> gdb:
> 0xf66957e0 <+288>: call 0xf66a8988 <wine_dbg_log at plt>
> (gdb) printf "%08x\n", (void*)*0xf66a8988
> 033dfa34
> (gdb) printf "%08x\n", (void*)*0xf66a898C
> 81c06200
> (gdb) printf "%08x\n", (void*)*0xf66a8990
> 01000000
> (gdb)
> --- /snip (also available as http://pastebin.com/JFN2w6q2 if bad format) ---
>
> it crashes (SIGSEGV) at wine_dbg_log at plt (0xf66a8988) in imm32.dll.so
> (if i remove the TRACE from DllMain it continues to crash with other libwine functions in winex11)
>
> 033dfa34 seems like a wrongly fixed up opcode to me. What do you guess?
> Should i file a bug? where?
A bit more info, for those curious:
austin at sunwine:~$ dpkg -l | grep -e "libc\|binutils"
ii binutils 2.22-1
GNU assembler, linker and binary utilities
ii klibc-utils 1.5.25-1
small utilities built with klibc for early boot
ii libc-bin 2.13-21
Embedded GNU C Library: Binaries
ii libc-dev-bin 2.13-21
Embedded GNU C Library: Development binaries
ii libc6 2.13-21
Embedded GNU C Library: Shared libraries
ii libc6-dev 2.13-21
Embedded GNU C Library: Development Libraries and Header Files
ii libc6-dev-sparc64 2.13-21
Embedded GNU C Library: 64bit Development Libraries for UltraSPARC
ii libc6-sparc64 2.13-21
Embedded GNU C Library: 64bit Shared libraries for UltraSPARC
ii libcairo-gobject2 1.10.2-6.1
The Cairo 2D vector graphics library (GObject library)
ii libcairo2 1.10.2-6.1
The Cairo 2D vector graphics library
ii libcap2 1:2.22-1
support for getting/setting POSIX.1e capabilities
ii libcapi20-3 1:3.9.20060704+dfsg.2-12
ISDN utilities - CAPI support libraries
ii libcapi20-dev 1:3.9.20060704+dfsg.2-12
ISDN utilities - CAPI development libraries
ii libclass-isa-perl 0.36-3
report the search path for a class's ISA tree
ii libcomerr2 1.42-1
common error description library
ii libcroco3 0.6.2-2
Cascading Style Sheet (CSS) parsing and manipulation toolkit
ii libcups2 1.5.0-13
Common UNIX Printing System(tm) - Core library
ii libcups2-dev 1.5.0-13
Common UNIX Printing System(tm) - Development files CUPS library
ii libcurl3-gnutls 7.22.0-3
Multi-protocol file transfer library (GnuTLS)
ii libcwidget3 0.5.16-3.1
high-level terminal interface library for C++ (runtime files)
ii libklibc 1.5.25-1
minimal libc subset for use with initramfs
ii liblocale-gettext-perl 1.05-7+b1
module using libc functions for internationalization in Perl
ii libpthread-stubs0 0.3-3
pthread stubs not provided by native libc
ii libpthread-stubs0-dev 0.3-3
pthread stubs not provided by native libc, development files
ii linux-libc-dev 3.1.1-1
Linux support headers for userspace development
austin at sunwine:~$ uname -a
Linux sunwine 3.1.0-1-sparc64 #1 Mon Nov 14 11:02:57 UTC 2011 sparc64 GNU/Linux
if anyone would like ssh access, email me an ssh key.
--
-Austin
More information about the wine-devel
mailing list