On Wed, 9 Nov 2011 13:21:34 -0600 Neale Ferguson <[email protected]> wrote:
> I’ve verified that the code generated is correct: > > lgr %r1,%r11 > aghi %r1,168 > lgr %r2,%r1 > lghi %r3,0 > brasl %r14,gettimeofday@PLT > lg %r1,168(%r11) That looks good. > Used readelf on the objet to see what it thinks about that symbol: > > 00000000012a 062900000013 R_390_PC32DBL 0000000000000000 gettimeofday + 2 > 000000003736 062900000013 R_390_PC32DBL 0000000000000000 gettimeofday + 2 > 1577: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND gettimeofday This is not good. On which object do you use the readelf on? On my little test shared library it looks like this: Relocation section '.rela.plt' at offset 0x4f0 contains 2 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000002018 00040000000b R_390_JMP_SLOT 0000000000000000 __cxa_finalize + 0 000000002020 00050000000b R_390_JMP_SLOT 0000000000000000 gettimeofday + 0 No R_390_PC32DBL relocation (which cannot work as you branch between two shared objects, the new shared library and the glibc). -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
