1 ===================================================================
2 RCS file: /cvs/src/src/bfd/elflink.c,v
3 retrieving revision 1.97
4 retrieving revision 1.98
6 --- src/bfd/elflink.c 2004/08/18 02:45:42 1.97
7 +++ src/bfd/elflink.c 2004/08/21 01:13:22 1.98
9 (_("%B: duplicate section `%A' has different size\n"),
13 + case SEC_LINK_DUPLICATES_SAME_CONTENTS:
14 + if (sec->size != l->sec->size)
15 + (*_bfd_error_handler)
16 + (_("%B: duplicate section `%A' has different size\n"),
18 + else if (sec->size != 0)
20 + bfd_byte *sec_contents, *l_sec_contents;
22 + if (!bfd_malloc_and_get_section (abfd, sec, &sec_contents))
23 + (*_bfd_error_handler)
24 + (_("%B: warning: could not read contents of section `%A'\n"),
26 + else if (!bfd_malloc_and_get_section (l->sec->owner, l->sec,
28 + (*_bfd_error_handler)
29 + (_("%B: warning: could not read contents of section `%A'\n"),
30 + l->sec->owner, l->sec);
31 + else if (memcmp (sec_contents, l_sec_contents, sec->size) != 0)
32 + (*_bfd_error_handler)
33 + (_("%B: warning: duplicate section `%A' has different contents\n"),
37 + free (sec_contents);
39 + free (l_sec_contents);
44 /* Set the output_section field so that lang_add_section