diff options
author | obrien <obrien@FreeBSD.org> | 2001-06-26 16:57:43 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-06-26 16:57:43 +0000 |
commit | 60b05d1eadb3b7cb0cf980a058ea2b990809b562 (patch) | |
tree | d65d88745b7aa83ec7685d68feda6a9d22444856 /contrib/binutils/bfd/linker.c | |
parent | fe0162ddb333a821c9b9a30185eef37b46a06bc5 (diff) | |
parent | bc13a0c5958e501561da1e6b4a3ca1fadda52059 (diff) | |
download | FreeBSD-src-60b05d1eadb3b7cb0cf980a058ea2b990809b562.zip FreeBSD-src-60b05d1eadb3b7cb0cf980a058ea2b990809b562.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r78828,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/binutils/bfd/linker.c')
-rw-r--r-- | contrib/binutils/bfd/linker.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/binutils/bfd/linker.c b/contrib/binutils/bfd/linker.c index 1fb3cc5..82805f9 100644 --- a/contrib/binutils/bfd/linker.c +++ b/contrib/binutils/bfd/linker.c @@ -1,5 +1,5 @@ /* linker.c -- BFD linker routines - Copyright (C) 1993, 94, 95, 96, 97, 98, 1999 + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Written by Steve Chamberlain and Ian Lance Taylor, Cygnus Support @@ -1801,6 +1801,15 @@ _bfd_generic_link_add_one_symbol (info, abfd, name, flags, section, value, copy, false); if (inh == (struct bfd_link_hash_entry *) NULL) return false; + if (inh->type == bfd_link_hash_indirect + && inh->u.i.link == h) + { + (*_bfd_error_handler) + (_("%s: indirect symbol `%s' to `%s' is a loop"), + bfd_get_filename (abfd), name, string); + bfd_set_error (bfd_error_invalid_operation); + return false; + } if (inh->type == bfd_link_hash_new) { inh->type = bfd_link_hash_undefined; |