From: <dan...@us...> - 2010-03-02 17:26:14
|
Revision: 1446 http://cegcc.svn.sourceforge.net/cegcc/?rev=1446&view=rev Author: dannybackx Date: 2010-03-02 17:26:08 +0000 (Tue, 02 Mar 2010) Log Message: ----------- Fix another crash in ld. Modified Paths: -------------- trunk/cegcc/src/binutils/ChangeLog.ce trunk/cegcc/src/binutils/ld/pe-dll.c Modified: trunk/cegcc/src/binutils/ChangeLog.ce =================================================================== --- trunk/cegcc/src/binutils/ChangeLog.ce 2010-02-27 19:35:17 UTC (rev 1445) +++ trunk/cegcc/src/binutils/ChangeLog.ce 2010-03-02 17:26:08 UTC (rev 1446) @@ -1,5 +1,11 @@ 2010-02-27 Danny Backx <dan...@us...> + * ld/pe-dll.c (make_singleton_name_imp) : Fix three issues with this + function, probably the result of a too sloppy copy of + make_singleton_name_thunk. + +2010-02-27 Danny Backx <dan...@us...> + * ld/pe-dll.c (pe_implied_import_dll) : Analyze .edata segment for those cases where optional header data directory doesn't have the equivalent info. Modified: trunk/cegcc/src/binutils/ld/pe-dll.c =================================================================== --- trunk/cegcc/src/binutils/ld/pe-dll.c 2010-02-27 19:35:17 UTC (rev 1445) +++ trunk/cegcc/src/binutils/ld/pe-dll.c 2010-03-02 17:26:08 UTC (rev 1446) @@ -2216,7 +2216,7 @@ static bfd * make_singleton_name_imp (const char *import, bfd *parent) { - /* Name thunks go to idata$4. */ + /* Name thunks go to idata$5. */ asection *id5; unsigned char *d5; char *oname; @@ -2243,12 +2243,12 @@ d5 = xmalloc (PE_IDATA5_SIZE * 2); id5->contents = d5; memset (d5, 0, PE_IDATA5_SIZE * 2); - quick_reloc (abfd, 0, BFD_RELOC_RVA, 2); + quick_reloc (abfd, 0, BFD_RELOC_RVA, 1); save_relocs (id5); bfd_set_symtab (abfd, symtab, symptr); - bfd_set_section_contents (abfd, id5, d5, 0, PE_IDATA4_SIZE * 2); + bfd_set_section_contents (abfd, id5, d5, 0, PE_IDATA5_SIZE * 2); bfd_make_readable (abfd); return abfd; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |