aboutsummaryrefslogtreecommitdiff
path: root/bfd/simple.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-12-07 04:37:56 +0000
committerDaniel Jacobowitz <drow@false.org>2004-12-07 04:37:56 +0000
commit1511ddaff3332b836a41f2d1c5e763719b0a4735 (patch)
treee410ab41a3bd544cce28b5ab2c079a0bf505988f /bfd/simple.c
parent64f857344215319abf1ec720e7dd7881146c226e (diff)
downloadfsf-binutils-gdb-1511ddaff3332b836a41f2d1c5e763719b0a4735.zip
fsf-binutils-gdb-1511ddaff3332b836a41f2d1c5e763719b0a4735.tar.gz
fsf-binutils-gdb-1511ddaff3332b836a41f2d1c5e763719b0a4735.tar.bz2
Suggested by Fergal Daly <fergal@esatclear.ie>:
* simple.c (simple_dummy_multiple_definition): New function. (bfd_simple_get_relocated_section_contents): Use it.
Diffstat (limited to 'bfd/simple.c')
-rw-r--r--bfd/simple.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/bfd/simple.c b/bfd/simple.c
index 5d98452..fee2be0 100644
--- a/bfd/simple.c
+++ b/bfd/simple.c
@@ -79,6 +79,19 @@ simple_dummy_unattached_reloc (struct bfd_link_info *link_info ATTRIBUTE_UNUSED,
return TRUE;
}
+static bfd_boolean
+simple_dummy_multiple_definition (struct bfd_link_info *link_info ATTRIBUTE_UNUSED,
+ const char *name ATTRIBUTE_UNUSED,
+ bfd *obfd ATTRIBUTE_UNUSED,
+ asection *osec ATTRIBUTE_UNUSED,
+ bfd_vma oval ATTRIBUTE_UNUSED,
+ bfd *nbfd ATTRIBUTE_UNUSED,
+ asection *nsec ATTRIBUTE_UNUSED,
+ bfd_vma nval ATTRIBUTE_UNUSED)
+{
+ return TRUE;
+}
+
struct saved_output_info
{
bfd_vma offset;
@@ -173,6 +186,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd,
callbacks.reloc_overflow = simple_dummy_reloc_overflow;
callbacks.reloc_dangerous = simple_dummy_reloc_dangerous;
callbacks.unattached_reloc = simple_dummy_unattached_reloc;
+ callbacks.multiple_definition = simple_dummy_multiple_definition;
memset (&link_order, 0, sizeof (link_order));
link_order.next = NULL;