aboutsummaryrefslogtreecommitdiff
path: root/bfd/simple.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-05-31 15:04:52 +0000
committerAlan Modra <amodra@gmail.com>2007-05-31 15:04:52 +0000
commita9a4c53eccf5a5e8ed2d6edb75054ad7ff7990fc (patch)
treebfdf255e2390aab1cfecbda9d7beb4f2ea053af9 /bfd/simple.c
parent91568d083aac1900ec23ac9432376ab5b704e8ac (diff)
downloadgdb-a9a4c53eccf5a5e8ed2d6edb75054ad7ff7990fc.zip
gdb-a9a4c53eccf5a5e8ed2d6edb75054ad7ff7990fc.tar.gz
gdb-a9a4c53eccf5a5e8ed2d6edb75054ad7ff7990fc.tar.bz2
include/
* bfdlink.h (struct bfd_link_info): Add input_bfds_tail. bfd/ * simple.c (bfd_simple_get_relocated_section_content): Init input_bfds_tail. ld/ * ldlang.c (ldlang_add_file): Use input_bfds_tail. * ldmain.c (main): Init input_bfds_tail. Sort link_info initialization.
Diffstat (limited to 'bfd/simple.c')
-rw-r--r--bfd/simple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/simple.c b/bfd/simple.c
index fd2fca5..8ebc47e 100644
--- a/bfd/simple.c
+++ b/bfd/simple.c
@@ -183,6 +183,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd,
/* Fill in the bare minimum number of fields for our purposes. */
memset (&link_info, 0, sizeof (link_info));
link_info.input_bfds = abfd;
+ link_info.input_bfds_tail = &abfd->link_next;
link_info.hash = _bfd_generic_link_hash_table_create (abfd);
link_info.callbacks = &callbacks;