Summary: | Can't link with .lib (for dll) created by Visual Studio 2013 any more | ||
---|---|---|---|
Product: | binutils | Reporter: | Hannes Domani <ssbssa> |
Component: | ld | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc, ssbssa |
Priority: | P2 | ||
Version: | 2.25 | ||
Target Milestone: | --- | ||
Host: | Target: | i686-w64-mingw32 | |
Build: | Last reconfirmed: | ||
Attachments: | .lib created by Visual Studio 2013 |
Description
Hannes Domani
2015-01-31 13:44:32 UTC
The master branch has been updated by Nick Clifton <nickc@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cdb602b17548eeebb5e700c507d734ea5f887a49 commit cdb602b17548eeebb5e700c507d734ea5f887a49 Author: Nick Clifton <nickc@redhat.com> Date: Fri Feb 27 15:38:32 2015 +0000 Fixes a problem recognizing libraries created by Visual Studio. PR binutils/17910 * coffgen.c (_bfd_coff_internal_syment_name): Only check for string length overflow when the string table length is actually set. Hi Domani, Sorry about that. I have checked in a patch to fix the problem. If the issue resurfaces, please reopenthis bug report. Cheers Nick The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=317e47ee5e7c539807d6cd16bde5c274025e8ee1 commit 317e47ee5e7c539807d6cd16bde5c274025e8ee1 Author: Alan Modra <amodra@gmail.com> Date: Wed Mar 22 09:05:10 2023 +1030 PR17910 sym string offset check As far as I can see the only place that sets obj_coff_strings without setting obj_coff_strings_len is pe_ILF_build_a_bfd. Fix that and we can simplify the sym string offset check. This is just a tidy. pe_ILF_build_a_bfd doesn't create bad symbols and _bfd_coff_read_string_table will always result in non-zero obj_coff_strings_len when obj_coff_strings is non-NULL. PR 17910 * coffgen.c (_bfd_coff_internal_syment_name): Always sanity check sym string offset. * peicode.h (pe_ILF_build_a_bfd): Set obj_coff_strings_len. |