ld/emultempl/elf32.em trusts inode numbers even under Mingwin

Alan Modra amodra@bigpond.net.au
Wed Feb 9 23:39:00 GMT 2005


On Wed, Feb 09, 2005 at 10:26:50AM -0800, Zack Weinberg wrote:
> of the code.  Loading the same shared library twice *sounds* like
> trouble...

It isn't.  See elflink.c

      ret = elf_add_dt_needed_tag (abfd, info, soname, add_needed);
      if (ret < 0)
	goto error_return;

      /* If we have already included this dynamic object in the
	 link, just ignore it.  There is no reason to include a
	 particular dynamic object more than once.  */
      if (ret > 0)
	return TRUE;

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list