1.1 --- a/patches/gdb/6.3/810-debian_bfd-no-kylix-crash.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,47 +0,0 @@
1.4 -Status: committed upstream after 6.3.
1.5 -
1.6 -Fix a crash triggered by Kylix libraries.
1.7 -
1.8 -2004-12-06 Daniel Jacobowitz <dan@debian.org>
1.9 -
1.10 - Suggested by Fergal Daly <fergal@esatclear.ie>:
1.11 - * simple.c (simple_dummy_multiple_definition): New function.
1.12 - (bfd_simple_get_relocated_section_contents): Use it.
1.13 -
1.14 -Index: src/bfd/simple.c
1.15 -===================================================================
1.16 -RCS file: /cvs/src/src/bfd/simple.c,v
1.17 -retrieving revision 1.19
1.18 -retrieving revision 1.20
1.19 -Index: gdb-6.3/bfd/simple.c
1.20 -===================================================================
1.21 ---- gdb-6.3.orig/bfd/simple.c 2004-09-24 03:07:19.000000000 -0400
1.22 -+++ gdb-6.3/bfd/simple.c 2004-12-08 18:25:58.415216808 -0500
1.23 -@@ -78,6 +78,19 @@ simple_dummy_unattached_reloc (struct bf
1.24 - return TRUE;
1.25 - }
1.26 -
1.27 -+static bfd_boolean
1.28 -+simple_dummy_multiple_definition (struct bfd_link_info *link_info ATTRIBUTE_UNUSED,
1.29 -+ const char *name ATTRIBUTE_UNUSED,
1.30 -+ bfd *obfd ATTRIBUTE_UNUSED,
1.31 -+ asection *osec ATTRIBUTE_UNUSED,
1.32 -+ bfd_vma oval ATTRIBUTE_UNUSED,
1.33 -+ bfd *nbfd ATTRIBUTE_UNUSED,
1.34 -+ asection *nsec ATTRIBUTE_UNUSED,
1.35 -+ bfd_vma nval ATTRIBUTE_UNUSED)
1.36 -+{
1.37 -+ return TRUE;
1.38 -+}
1.39 -+
1.40 - struct saved_output_info
1.41 - {
1.42 - bfd_vma offset;
1.43 -@@ -172,6 +185,7 @@ bfd_simple_get_relocated_section_content
1.44 - callbacks.reloc_overflow = simple_dummy_reloc_overflow;
1.45 - callbacks.reloc_dangerous = simple_dummy_reloc_dangerous;
1.46 - callbacks.unattached_reloc = simple_dummy_unattached_reloc;
1.47 -+ callbacks.multiple_definition = simple_dummy_multiple_definition;
1.48 -
1.49 - memset (&link_order, 0, sizeof (link_order));
1.50 - link_order.next = NULL;