aboutsummaryrefslogtreecommitdiff
path: root/bfd
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
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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/simple.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a754213..e291ff1 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-01 Alan Modra <amodra@bigpond.net.au>
+
+ * simple.c (bfd_simple_get_relocated_section_contents): Init
+ input_bfds_tail.
+
2007-05-30 Alan Modra <amodra@bigpond.net.au>
* elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
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;