Displaying 11 results from an estimated 11 matches for "createimportlibrary".
2017 Oct 16
2
LLD COFF not closing mmaps to input files?
.../deps/lld/COFF/Driver.cpp b/deps/lld/COFF/Driver.cpp
index 854c3e69..8bab1c11 100644
--- a/deps/lld/COFF/Driver.cpp
+++ b/deps/lld/COFF/Driver.cpp
@@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *>
ArgsArr) {
if (!Args.hasArgNoClaim(OPT_INPUT)) {
fixupExports();
createImportLibrary(/*AsLib=*/true);
- exit(0);
+ return;
}
// Handle /delayload
@@ -1172,9 +1172,6 @@ void LinkerDriver::link(ArrayRef<const char *>
ArgsArr) {
// Write the result.
writeResult(&Symtab);
-
- // Call exit to avoid calling destructors.
- exit(0);
}
} // namespace coff...
2017 Aug 31
2
LLD: patch to fix libCOFF calling exit() on success in a library function
...diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 854c3e69098..8b17f039870 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *>
ArgsArr) {
if (!Args.hasArgNoClaim(OPT_INPUT)) {
fixupExports();
createImportLibrary(/*AsLib=*/true);
- exit(0);
+ return;
}
// Handle /delayload
@@ -1122,7 +1122,7 @@ void LinkerDriver::link(ArrayRef<const char *>
ArgsArr) {
// This is useful because MSVC link.exe can generate complete PDBs.
if (Args.hasArg(OPT_msvclto)) {
invokeMSVC(Args);
- exit(...
2017 Oct 16
2
LLD COFF not closing mmaps to input files?
...3e69..8bab1c11 100644
>> --- a/deps/lld/COFF/Driver.cpp
>> +++ b/deps/lld/COFF/Driver.cpp
>> @@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *>
>> ArgsArr) {
>> if (!Args.hasArgNoClaim(OPT_INPUT)) {
>> fixupExports();
>> createImportLibrary(/*AsLib=*/true);
>> - exit(0);
>> + return;
>> }
>>
>> // Handle /delayload
>> @@ -1172,9 +1172,6 @@ void LinkerDriver::link(ArrayRef<const char *>
>> ArgsArr) {
>>
>> // Write the result.
>> writeResult(&Symtab...
2017 Aug 31
2
LLD: patch to fix libCOFF calling exit() on success in a library function
...854c3e69098..8b17f039870 100644
>> --- a/lld/COFF/Driver.cpp
>> +++ b/lld/COFF/Driver.cpp
>> @@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *>
>> ArgsArr) {
>> if (!Args.hasArgNoClaim(OPT_INPUT)) {
>> fixupExports();
>> createImportLibrary(/*AsLib=*/true);
>> - exit(0);
>> + return;
>> }
>>
>> // Handle /delayload
>> @@ -1122,7 +1122,7 @@ void LinkerDriver::link(ArrayRef<const char *>
>> ArgsArr) {
>> // This is useful because MSVC link.exe can generate complete PDB...
2017 May 11
2
RFC: A new llvm-dlltool driver and llvm-lib driver improvements
...ve this would result in a better API. Of course you
>>> can reuse code, but what we need is a clean interface.
>>>
>>> The library shouldn't be complicated. In fact, it would export only one
>>> function.
>>>
>>> std::vector<uint8_t> createImportLibrary(std::vector<ExportSymbol>)
>>>
>>> I.e. it takes a list of DLLExported symbols and returns a .lib file.
>>> ExportSymbol type contains information about DLLExported symbols.
>>>
>>
>>
>
--
--
Peter
-------------- next part --------------...
2017 May 21
2
RFC: A new llvm-dlltool driver and llvm-lib driver improvements
...>>>>> you can reuse code, but what we need is a clean interface.
>>>>>
>>>>> The library shouldn't be complicated. In fact, it would export only
>>>>> one function.
>>>>>
>>>>> std::vector<uint8_t> createImportLibrary(std::vector<ExportSymbol>)
>>>>>
>>>>> I.e. it takes a list of DLLExported symbols and returns a .lib file.
>>>>> ExportSymbol type contains information about DLLExported symbols.
>>>>>
>>>>
>>>>
>>>...
2017 Jun 15
2
Using LLD to create a .lib from a .def
...D internal stuff?
>>
>
> Martell recently factored out the code to parse and generate module
> definition files. You might be able to use that. See llvm/Object/
> COFFModuleDefinition.h.
>
> The location at where LLD uses COFFModuleDefinition.h is in
> parseModuleDefs and createImportLibrary in COFF/Driver.cpp.
>
OK, thanks. I'll get a build going with latest trunk and see if I can get
it to work.
>
> Regards,
>> Andrew Kelley
>> ziglang.org
>>
>>
>> _______________________________________________
>> LLVM Developers mailing list
>&...
2017 Jun 16
2
Using LLD to create a .lib from a .def
...rtell recently factored out the code to parse and generate module
>>> definition files. You might be able to use that. See
>>> llvm/Object/COFFModuleDefinition.h.
>>>
>>> The location at where LLD uses COFFModuleDefinition.h is in
>>> parseModuleDefs and createImportLibrary in COFF/Driver.cpp.
>>>
>>
>> OK, thanks. I'll get a build going with latest trunk and see if I can get
>> it to work.
>>
>>
>>>
>>> Regards,
>>>> Andrew Kelley
>>>> ziglang.org
>>>>
>>>>
&g...
2017 Feb 14
3
RFC: A new llvm-dlltool driver and llvm-lib driver improvements
Well that means it would just be the only plan then.
I assume the first step would be to move the code from lld into this new
library and lld can use that? I can then re add the extra functionality for
weak externals?
We can then have lib and dlltool use this then.
On Tue 14 Feb 2017 at 01:58, Rui Ueyama <ruiu at google.com> wrote:
> On Mon, Feb 13, 2017 at 5:56 PM, Martell Malone
2017 Jun 14
2
Using LLD to create a .lib from a .def
I'm copying some LLD code into my codebase like this:
// workaround for LLD not exposing ability to convert .def to .lib
#include <set>
namespace lld {
namespace coff {
class SymbolBody;
class StringChunk;
struct Symbol;
struct Export {
StringRef Name; // N in /export:N or /export:E=N
StringRef ExtName; // E in /export:E=N
SymbolBody *Sym = nullptr;
uint16_t Ordinal
2005 Sep 21
2
cdecl and stdcall
Hi,
I'm trying to load a dynamic link library and it seems to work (is.loaded -> TRUE). When I run the function, which calls the .Fortran subroutine, R crashes!
I'v tried the same in S-Plus 2000 and it worked. Therefore I suppose that the dll has been compiled with the stdcall calling convention (and not cdecl). But the problem is that I don't have access to the source code,