From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: law@cygnus.com Cc: binutils@sourceware.cygnus.com, drepper@cygnus.com Subject: Re: Dealing with broken ELF libraries Date: Thu, 02 Sep 1999 06:55:00 -0000 Message-id: <19990902135533.8501.qmail@daffy.airs.com> References: <23914.936225419@upchuck.cygnus.com> X-SW-Source: 1999-09/msg00009.html Date: Wed, 01 Sep 1999 16:36:59 -0600 From: Jeffrey A Law We might be able to do something like recognize that LINK refers to a section that is not of type STRTAB (and then fall back to looking for .dynsym's string table). I don't know what else would work. Note that we already do workarounds like that in other cases. For example, the Oracle libraries on Solaris have a similar bug (or at least they used to): the link field of the SHT_RELA sections does not point to the appropriate symbol table. You can see the workaround in bfd_section_from_shdr in bfd/elf.c. Ian