mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-19 05:42:42 +08:00
Suggested by Fergal Daly <fergal@esatclear.ie>:
* simple.c (simple_dummy_multiple_definition): New function. (bfd_simple_get_relocated_section_contents): Use it.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-12-06 Daniel Jacobowitz <dan@debian.org>
|
||||||
|
|
||||||
|
Suggested by Fergal Daly <fergal@esatclear.ie>:
|
||||||
|
* simple.c (simple_dummy_multiple_definition): New function.
|
||||||
|
(bfd_simple_get_relocated_section_contents): Use it.
|
||||||
|
|
||||||
2004-12-03 Jan Beulich <jbeulich@novell.com>
|
2004-12-03 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
* elf.c (elf_find_function): Don't use the last file symbol ever,
|
* elf.c (elf_find_function): Don't use the last file symbol ever,
|
||||||
|
14
bfd/simple.c
14
bfd/simple.c
@ -79,6 +79,19 @@ simple_dummy_unattached_reloc (struct bfd_link_info *link_info ATTRIBUTE_UNUSED,
|
|||||||
return TRUE;
|
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
|
struct saved_output_info
|
||||||
{
|
{
|
||||||
bfd_vma offset;
|
bfd_vma offset;
|
||||||
@ -173,6 +186,7 @@ bfd_simple_get_relocated_section_contents (bfd *abfd,
|
|||||||
callbacks.reloc_overflow = simple_dummy_reloc_overflow;
|
callbacks.reloc_overflow = simple_dummy_reloc_overflow;
|
||||||
callbacks.reloc_dangerous = simple_dummy_reloc_dangerous;
|
callbacks.reloc_dangerous = simple_dummy_reloc_dangerous;
|
||||||
callbacks.unattached_reloc = simple_dummy_unattached_reloc;
|
callbacks.unattached_reloc = simple_dummy_unattached_reloc;
|
||||||
|
callbacks.multiple_definition = simple_dummy_multiple_definition;
|
||||||
|
|
||||||
memset (&link_order, 0, sizeof (link_order));
|
memset (&link_order, 0, sizeof (link_order));
|
||||||
link_order.next = NULL;
|
link_order.next = NULL;
|
||||||
|
Reference in New Issue
Block a user