This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
The binutils 2.15 linker fails to link on 68HC11/68HC12 when a symbol is declared in the linker script. It seems that such symbols are marked with bfd_link_hash_new but this type was not handled by the stub generation part (far trampolines) during the link. This results in an error.
Index: elf32-m68hc1x.c =================================================================== RCS file: /cvs/src/src/bfd/elf32-m68hc1x.c,v retrieving revision 1.15 diff -u -p -r1.15 elf32-m68hc1x.c --- elf32-m68hc1x.c 29 Jun 2004 13:46:30 -0000 1.15 +++ elf32-m68hc1x.c 1 Aug 2004 19:26:26 -0000 @@ -471,7 +471,8 @@ elf32_m68hc11_size_stubs (bfd *output_bf hash->root.u.i.link); if (hash->root.type == bfd_link_hash_defined - || hash->root.type == bfd_link_hash_defweak) + || hash->root.type == bfd_link_hash_defweak + || hash->root.type == bfd_link_hash_new) { if (!(hash->other & STO_M68HC12_FAR)) continue;
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |