Binutils + OpenSSL issue
Kumba
kumba@gentoo.org
Tue May 20 05:35:00 GMT 2003
Okay, this probably relates to the libcrypto/libssl workaround Thiemo
developed earlier, and it did fix binutils (which built a correct
OpenSSL this time), and didn't seem to cause anymore issues until
building procps-3.1.8. The actual error is below.
gcc -shared -Wl,-soname,libproc.so.3.1.8
-Wl,--version-script=proc/library.map -o proc/libproc.so.3.1.8
proc/alloc.o proc/devname.o proc/escape.o proc/ksym.o proc/prof.o
proc/pwcache.o proc/readproc.o proc/sig.o proc/status.o proc/sysinfo.o
proc/version.o proc/whattime.o -lc
/usr/lib/gcc-lib/mips-unknown-linux-gnu/3.2.3/../../../../mips-unknown-linux-gnu/bin/ld:
not enough GOT space for local GOT entries
/usr/lib/gcc-lib/mips-unknown-linux-gnu/3.2.3/../../../../mips-unknown-linux-gnu/bin/ld:
BFD 2.14.90.0.2 20030515 internal error, aborting at elfxx-mips.c line
6558 in _bfd_mips_elf_relocate_section
/usr/lib/gcc-lib/mips-unknown-linux-gnu/3.2.3/../../../../mips-unknown-linux-gnu/bin/ld:
Please report this bug.
collect2: ld returned 1 exit status
make: *** [proc/libproc.so.3.1.8] Error 1
Of note, is this error seems specific to procps-3.1.8 only. I
successfully compiled procps-2.0.11 w/o issues.
--Kumba
Thiemo Seufer wrote:
> Eric Christopher wrote:
>>
>>What was the bug again?
>
>
> Broken dynamic relocation table in libcrypto.so.0.9.7 because the global
> GOT entry count is to low. This probably happens for all -Bsymbolic
> --whole-archive links. The appended patch works around the special case
> for libcrypto, but will likely break other things. Just a hint wher to
> look.
>
>
> Thiemo
>
>
> --- src-orig/bfd/elfxx-mips.c 9 May 2003 02:27:09 -0000
> +++ src/bfd/elfxx-mips.c 19 May 2003 22:23:50 -0000
> @@ -7851,8 +7851,8 @@ _bfd_mips_elf_hide_symbol (info, entry,
> been marked for a global got entry, give it a local entry
> instead. */
> BFD_ASSERT (g->global_gotno > 0);
> - g->local_gotno++;
> - g->global_gotno--;
> +// g->local_gotno++;
> +// g->global_gotno--;
> }
> }
>
>
More information about the Binutils
mailing list