Bug#248373: libc6.1: 2.3.2.ds1-12 on Alpha takes much more disk space than 2.3.2.ds1-11
On Wed, May 12, 2004 at 01:49:41PM +0900, GOTO Masanori wrote:
> At 12 May 2004 01:20:20 +0300,
> Paavo Hartikainen wrote:
> > Jeff Bailey <jbailey@raspberryginger.com> writes:
> >
> > > Could you check to see whether the libraries has dramatically
> > > changed size? If you can check that, there's a chance we can make
> > > sure it's fixed for -13.
>
> > pahartik@mufasa:~$ ls -l /lib/libc-2.3.2.so
> > -rw-r--r-- 1 root root 18832508 2004-04-23 02:22 /lib/libc-2.3.2.so
> > pahartik@mufasa:~$ file /lib/libc-2.3.2.so
> > /lib/libc-2.3.2.so: ELF 64-bit LSB shared object, Alpha (unofficial), version 1 (SYSV), not stripped
> > ---
> >
> > So my guess was right, new version is not stripped.
>
> Daniel introduced special strip handling for libc6-dbg in
> 2.3.2.ds1-12. Build log at:
> http://buildd.debian.org/fetch.php?&pkg=glibc&ver=2.3.2.ds1-12&arch=alpha&stamp=1082676652&file=log&as=raw
>
> It said:
>
> /usr/bin/objcopy: debian/libc6.1/usr/lib/debug//lib/ld-2.3.2.so: File truncated
> dh_strip: command returned error code 256
> 148 blocks
> /usr/bin/objcopy: ../libc6.1-dbg/usr/lib/debug/./lib/libpthread-0.10.so: File truncated
> /usr/bin/objcopy: ./lib/stUl2lFk: File truncated
>
> So it was failed to strip libc6.1 files. Moreover, on alpha, objcopy
> does not work with the current debian binutils. See #234021.
>
> I have not checked the latest binutils yet on alpha. Daniel, did you
> know this bug was already fixed in the latest binutils? If not, is it
> difficult to fix?
I don't know, but this looks like a bug I encountered on ARM. If it's
the same bug it hasn't been fixed yet but I had a potential patch from
Alan:
Index: bfd/elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.218
diff -u -p -r1.218 elf.c
--- bfd/elf.c 5 Mar 2004 11:26:04 -0000 1.218
+++ bfd/elf.c 18 Mar 2004 10:14:34 -0000
@@ -4255,9 +4255,7 @@ assign_file_positions_except_relocs (bfd
off = _bfd_elf_assign_file_position_for_section (hdr, off,
FALSE);
}
- else if (hdr->sh_type == SHT_REL
- || hdr->sh_type == SHT_RELA
- || hdr == i_shdrpp[tdata->symtab_section]
+ else if (hdr == i_shdrpp[tdata->symtab_section]
|| hdr == i_shdrpp[tdata->symtab_shndx_section]
|| hdr == i_shdrpp[tdata->strtab_section])
hdr->sh_offset = -1;
> BTW, should we use strip instead of objcopy? Daniel?
No. We can disable libc6-dbg on alpha to work around the bug if
necessary but someone should try cvs binutils and/or that patch.
--
Daniel Jacobowitz
Reply to: