From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at velesys.com Date: Wed, 29 Aug 2007 15:18:27 +0300 From: "Kirill A. Shutemov" To: ALT Devel discussion list Message-ID: <20070829121827.GA620@localhost.localdomain> References: <20070611213223.F2A4619FC006@ssh.git.local.altlinux.org> <20070612191122.GH23306@basalt.office.altlinux.org> <20070613085515.GB28523@localhost.localdomain> <20070823104419.GA19332@localhost.localdomain> <20070829095358.GA22840@localhost.localdomain> <20070829100311.GF10945@basalt.office.altlinux.org> <20070829114518.GA16764@localhost.localdomain> <20070829115332.GA7487@basalt.office.altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20070829115332.GA7487@basalt.office.altlinux.org> X-Operating-System: ALT Linux Sisyphus (20070101) (Kernel 2.6.18-ovz-smp-alt15) User-Agent: Mutt/1.5.14 (2007-02-12) Subject: Re: [devel] [git update] packages/glibc: heads/arm-port X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2007 12:18:32 -0000 Archived-At: List-Archive: List-Post: --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Wed, 29.08.2007 15:53], Dmitry V. Levin wrote: > On Wed, Aug 29, 2007 at 02:45:18PM +0300, Kirill A. Shutemov wrote: > ld-2.5.so =D1=8D=D1=82=D0=BE =D0=BD=D0=B5 pie executable, =D0=B0 shared o= bject. =D0=92 =D1=87=D1=91=D0=BC =D1=80=D0=B0=D0=B7=D0=BD=D0=B8=D1=86=D0=B0? =D0= =94=D0=BE =D1=81=D0=B8=D1=85 =D0=BF=D0=BE=D1=80 =D1=8F =D0=B4=D1=83=D0=BC= =D0=B0=D0=BB, =D1=87=D1=82=D0=BE =D0=B8 pie, =D0=B8 shared library =D1=8F= =D0=B2=D0=BB=D1=8F=D1=8E=D1=82=D1=81=D1=8F shared object. =D0=A2=D0=B5=D0=BF=D0=B5=D1=80=D1=8C =D1=81=D0=BE=D0=B2=D1= =81=D0=B5=D0=BC =D0=B7=D0=B0=D0=BF=D1=83=D1=82=D0=B0=D0=BB=D1=81=D1=8F... >=20 > =D0=9F=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D0=B0 =D0=B2 =D1=82=D0=BE=D0= =BC, =D1=87=D1=82=D0=BE =D1=8D=D0=B2=D1=80=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0= =B0 /usr/lib/rpm/fixup-libraries =D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5= =D1=82 =D0=BD=D0=B0 x86*, > =D0=BD=D0=BE =D0=BD=D0=B0 ARM'=D0=B5 =D0=BD=D0=B5 =D1=80=D0=B0=D1=81=D0= =BF=D0=BE=D0=B7=D0=BD=D0=B0=D1=91=D1=82 =D0=B2 ld-2.5.so, libc-2.5.so =D0= =B8 libcrypt-2.5.so > =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D1=8F=D0=B5=D0=BC=D1=8B=D1=85 =D1=84= =D0=B0=D0=B9=D0=BB=D0=BE=D0=B2. =D0=94=D0=B5=D0=B9=D1=81=D1=82=D0=B2=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0= =BE =D0=BD=D0=B5 =D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82 :( =D0=9C=D0=BE=D0=B6=D0=B5=D1=82=D0=B5 =D1=87=D1=82=D0=BE-=D0=BD=D0=B8=D0=B1= =D1=83=D0=B4=D1=8C =D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D0=B0=D1=82= =D1=8C =D0=BF=D0=BE =D1=8D=D1=82=D0=BE=D0=BC=D1=83 =D0=B2=D1=8B=D0=B2=D0=BE= =D0=B4=D1=83? [builder@localhost ~]$ bash -x /usr/lib/rpm/fixup-libraries /lib/ld-2.5.so= =20 + for file in '"$@"' ++ file -b /lib/ld-2.5.so + type=3D'ELF 32-bit LSB shared object, ARM, version 1 (SYSV), not stripped' + case "$type" in ++ readelf -h /lib/ld-2.5.so + file_header=3D'ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00=20 Class: ELF32 Data: 2'\''s complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: ARM Version: 0x1 Entry point address: 0x8a0 Start of program headers: 52 (bytes into file) Start of section headers: 104200 (bytes into file) Flags: 0x4000002, has entry point, Version4 E= ABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 27 Section header string table index: 24' ++ printf %s 'ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00=20 Class: ELF32 Data: 2'\''s complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: DYN (Shared object file) Machine: ARM Version: 0x1 Entry point address: 0x8a0 Start of program headers: 52 (bytes into file) Start of section headers: 104200 (bytes into file) Flags: 0x4000002, has entry point, Version4 E= ABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 6 Size of section headers: 40 (bytes) Number of section headers: 27 Section header string table index: 24' ++ sed -ne 's/^ \+Entry point address: \+0x0*\([0-9a-f]\+\)$/\1/p' + entry=3D8a0 + '[' -n 8a0 ']' ++ readelf -S /lib/ld-2.5.so + section_header=3D'There are 27 section headers, starting at offset 0x1970= 8: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk I= nf Al [ 0] NULL 00000000 000000 000000 00 0 = 0 0 [ 1] .hash HASH 000000f4 0000f4 000124 04 A 3 = 0 4 [ 2] .gnu.hash GNU_HASH 00000218 000218 00014c 04 A 3 = 0 4 [ 3] .dynsym DYNSYM 00000364 000364 0001d0 10 A 4 = 2 4 [ 4] .dynstr STRTAB 00000534 000534 0001b0 00 A 0 = 0 1 [ 5] .gnu.version VERSYM 000006e4 0006e4 00003a 02 A 3 = 0 2 [ 6] .gnu.version_d VERDEF 00000720 000720 00005c 00 A 4 = 3 4 [ 7] .rel.dyn REL 0000077c 00077c 0000a0 08 A 3 = 0 4 [ 8] .rel.plt REL 0000081c 00081c 000028 08 A 3 = 9 4 [ 9] .plt PROGBITS 00000844 000844 000050 04 AX 0 = 0 4 [10] .text PROGBITS 000008a0 0008a0 0155ec 00 AX 0 = 0 16 [11] __libc_freeres_fn PROGBITS 00015e8c 015e8c 000144 00 AX 0 = 0 4 [12] .rodata PROGBITS 00015fd0 015fd0 002950 00 A 0 = 0 4 [13] .ARM.extab PROGBITS 00018920 018920 000030 00 A 0 = 0 4 [14] .ARM.exidx ARM_EXIDX 00018950 018950 000068 00 AL 10 = 0 4 [15] .eh_frame_hdr PROGBITS 000189b8 0189b8 00001c 00 A 0 = 0 4 [16] .eh_frame PROGBITS 000189d4 0189d4 00007c 00 A 0 = 0 4 [17] .data.rel.ro PROGBITS 00020d50 018d50 000198 00 WA 0 = 0 8 [18] .dynamic DYNAMIC 00020ee8 018ee8 0000c8 08 WA 4 = 0 4 [19] .got PROGBITS 00020fb0 018fb0 00004c 04 WA 0 = 0 4 [20] .data PROGBITS 00021000 019000 0005f8 00 WA 0 = 0 8 [21] __libc_subfreeres PROGBITS 000215f8 0195f8 000004 00 WA 0 = 0 4 [22] .bss NOBITS 000215fc 0195fc 0000e4 00 WA 0 = 0 4 [23] .ARM.attributes ARM_ATTRIBUTES 00000000 0195fc 000010 00 0 = 0 1 [24] .shstrtab STRTAB 00000000 01960c 0000f9 00 0 = 0 1 [25] .symtab SYMTAB 00000000 019b40 002cd0 10 26 6= 90 4 [26] .strtab STRTAB 00000000 01c810 0014df 00 0 = 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)' ++ sed -ne 's/^ *\[ *[0-9]\+\] \.text \+PROGBITS \+0*\([0-9a-f]\+\) \+.*/\1= /p' ++ printf %s 'There are 27 section headers, starting at offset 0x19708: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk I= nf Al [ 0] NULL 00000000 000000 000000 00 0 = 0 0 [ 1] .hash HASH 000000f4 0000f4 000124 04 A 3 = 0 4 [ 2] .gnu.hash GNU_HASH 00000218 000218 00014c 04 A 3 = 0 4 [ 3] .dynsym DYNSYM 00000364 000364 0001d0 10 A 4 = 2 4 [ 4] .dynstr STRTAB 00000534 000534 0001b0 00 A 0 = 0 1 [ 5] .gnu.version VERSYM 000006e4 0006e4 00003a 02 A 3 = 0 2 [ 6] .gnu.version_d VERDEF 00000720 000720 00005c 00 A 4 = 3 4 [ 7] .rel.dyn REL 0000077c 00077c 0000a0 08 A 3 = 0 4 [ 8] .rel.plt REL 0000081c 00081c 000028 08 A 3 = 9 4 [ 9] .plt PROGBITS 00000844 000844 000050 04 AX 0 = 0 4 [10] .text PROGBITS 000008a0 0008a0 0155ec 00 AX 0 = 0 16 [11] __libc_freeres_fn PROGBITS 00015e8c 015e8c 000144 00 AX 0 = 0 4 [12] .rodata PROGBITS 00015fd0 015fd0 002950 00 A 0 = 0 4 [13] .ARM.extab PROGBITS 00018920 018920 000030 00 A 0 = 0 4 [14] .ARM.exidx ARM_EXIDX 00018950 018950 000068 00 AL 10 = 0 4 [15] .eh_frame_hdr PROGBITS 000189b8 0189b8 00001c 00 A 0 = 0 4 [16] .eh_frame PROGBITS 000189d4 0189d4 00007c 00 A 0 = 0 4 [17] .data.rel.ro PROGBITS 00020d50 018d50 000198 00 WA 0 = 0 8 [18] .dynamic DYNAMIC 00020ee8 018ee8 0000c8 08 WA 4 = 0 4 [19] .got PROGBITS 00020fb0 018fb0 00004c 04 WA 0 = 0 4 [20] .data PROGBITS 00021000 019000 0005f8 00 WA 0 = 0 8 [21] __libc_subfreeres PROGBITS 000215f8 0195f8 000004 00 WA 0 = 0 4 [22] .bss NOBITS 000215fc 0195fc 0000e4 00 WA 0 = 0 4 [23] .ARM.attributes ARM_ATTRIBUTES 00000000 0195fc 000010 00 0 = 0 1 [24] .shstrtab STRTAB 00000000 01960c 0000f9 00 0 = 0 1 [25] .symtab SYMTAB 00000000 019b40 002cd0 10 26 6= 90 4 [26] .strtab STRTAB 00000000 01c810 0014df 00 0 = 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific)' + text=3D8a0 + '[' -n 8a0 ']' + '[' 8a0 =3D 8a0 ']' + readelf -s /lib/ld-2.5.so + fgrep -wqs __preinit_array_end + '[' -n /lib/ld-2.5.so ']' + chmod -v u+w,a-x,ug-s /lib/ld-2.5.so /bin/chmod: changing permissions of `/lib/ld-2.5.so': Operation not permitt= ed failed to change mode of `/lib/ld-2.5.so' to 0644 (rw-r--r--) --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFG1WQTbWYnhzC5v6oRApA7AJkBseLD7Qbx33VG1ms/EPCr9o7kDwCcCwuC hExLqChllJiQla52D2AwaO0= =gI6n -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--