[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Python independant binary extensions



On Sun, Jul 02, 2006 at 12:55:27PM +0200, Mike Hommey <mh@glandium.org> wrote:
> FWIW, here is what i got for python-libxslt1: the files are the same size,
> but are different. I was wondering how different they could be and it's
> quite stunning, actually:
> mh@namakemono:/usr/lib/python-support/python-libxslt1$ hexdump -C python2.3/libxsltmod.so > /tmp/2.3
> mh@namakemono:/usr/lib/python-support/python-libxslt1$ hexdump -C python2.4/libxsltmod.so > /tmp/2.4
> mh@namakemono:/usr/lib/python-support/python-libxslt1$ diff /tmp/2.*
> 1808c1808
> < 00007140  08 8b 45 ec 89 04 24 e8  e8 d9 ff ff 8b 76 18 39 |..E...$......v.9|
> ---
> > 00007140  08 8b 45 ec 89 04 24 e8  e8 d9 ff ff 8b 76 18 3b |..E...$......v.;|
> 
> 
> Yep, there's only one *bit* of difference.

It's even worse. There's *no* real difference.

mh@namakemono:/usr/lib/python-support/python-libxslt1$ objdump -d python2.3/libxsltmod.so > /tmp/2.3
mh@namakemono:/usr/lib/python-support/python-libxslt1$ objdump -d python2.4/libxsltmod.so > /tmp/2.4
mh@namakemono:/usr/lib/python-support/python-libxslt1$ diff /tmp/2.3 /tmp/2.4
2c2
< python2.3/libxsltmod.so:     ファイル形式 elf32-i386
---
> python2.4/libxsltmod.so:     ファイル形式 elf32-i386
3596c3596
<     714f:     39 7d f0                cmp    %edi,0xfffffff0(%ebp)
---
>     714f:     3b 7d f0                cmp    0xfffffff0(%ebp),%edi

Mike



Reply to: