Bug #4383
closedlibelf can't write extended sections when ELF_F_LAYOUT
100%
Description
/usr/bin/strip coredumps with Assertion failed: (uintptr_t)dst.d_buf < ((uintptr_t)image + outsz), file ../common/update.c, line 670, function wrt32
apparently already discovered as a related problem by richlowe (https://sourceware.org/bugzilla/show_bug.cgi?id=15835)
building thunderbird 24.1.1 on pkgsrc (i386) using gcc 4.8.2 with Solaris Link Editors: 5.11-1.1745 (illumos)
(on a hipster based oi machine).
I get a greadelf message after a huge link (libxul.so) to the tune of :
readelf: Error: File contains multiple symtab shndx tables
readelf: Error: File contains multiple symtab shndx tables
Then later, when building nodebug, /usr/bin/strip fails with the following (recreated here):
$ strip libxul.so
Assertion failed: (uintptr_t)dst.d_buf < ((uintptr_t)image + outsz), file ../common/update.c, line 670, function wrt32
Abort (core dumped)
If I use gstrip, I get the assertion, but it doesn't core (luckily):
$ gstrip libxul.so
BFD: BFD (GNU Binutils) 2.23.1 assertion fail /data/jenkins/jobs/oi-userland/workspace/components/binutils/binutils-2.23.1/bfd/elf.c:1734
BFD: BFD (GNU Binutils) 2.23.1 assertion fail /data/jenkins/jobs/oi-userland/workspace/components/binutils/binutils-2.23.1/bfd/elf.c:1734
I can provide a bzipped libxul.so, if wanted.