It appears I answered too quickly... On 10/23/07, Simon Vallet <[EMAIL PROTECTED]> wrote: > Hi again, > > On 10/22/07, Simon Vallet <[EMAIL PROTECTED]> wrote: > > > > As mentioned, I don't have access to the box or the build log right > > now, but I think -Wa,--noexecstack was indeed specified in configure, > > and I think the generated .so do in fact contain text relocs. I will > > check this manually (readelf -r) tonight and post the relevant info > > OK, now I have some more info -- it appears you were right and there > actually aren't any relocations in the .text section : the text section starts > @0x45940, size 0xcd374, and all relocations concern offsets beginning > at 0x131020 (.data.rel.ro)
Double-checking yields the following buried between 0x0013xxxx relocs : [EMAIL PROTECTED]:~$ readelf -r /usr/src/openssl-0.9.8e/i686/cmov/libcrypto.so.0.9.8 [...] 0006354c 000ce102 R_386_PC32 00062630 DES_encrypt2 00063560 000ce102 R_386_PC32 00062630 DES_encrypt2 00063574 000ce102 R_386_PC32 00062630 DES_encrypt2 0006367c 000ce102 R_386_PC32 00062630 DES_encrypt2 00063690 000ce102 R_386_PC32 00062630 DES_encrypt2 000636a4 000ce102 R_386_PC32 00062630 DES_encrypt2 00063772 000cde02 R_386_PC32 00061700 DES_encrypt1 000637da 000cde02 R_386_PC32 00061700 DES_encrypt1 0006380b 000cde02 R_386_PC32 00061700 DES_encrypt1 00063857 000cde02 R_386_PC32 00061700 DES_encrypt1 0006395b 000ce302 R_386_PC32 000634c0 DES_encrypt3 000639c3 000ce302 R_386_PC32 000634c0 DES_encrypt3 000639fb 0009da02 R_386_PC32 000635f0 DES_decrypt3 00063a47 0009da02 R_386_PC32 000635f0 DES_decrypt3 00068773 000a8902 R_386_PC32 00067cc0 _x86_AES_encrypt 000694a6 000a8902 R_386_PC32 00067cc0 _x86_AES_encrypt 00069357 00021902 R_386_PC32 00068790 _x86_AES_decrypt 00069654 00021902 R_386_PC32 00068790 _x86_AES_decrypt 00069703 00021902 R_386_PC32 00068790 _x86_AES_decrypt 00069a7b 00090102 R_386_PC32 000697b0 AES_set_encrypt_key 0006bc95 00018402 R_386_PC32 0006b400 BF_encrypt 0006bd05 00018402 R_386_PC32 0006b400 BF_encrypt 0006bd3f 000c3e02 R_386_PC32 0006b820 BF_decrypt 0006bd93 000c3e02 R_386_PC32 0006b820 BF_decrypt [...] [EMAIL PROTECTED]:~$ So it seems there are indeed relocations in the .text section Simon ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
