[lldb-dev] How to link lldb on i386

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Tue May 24 03:04:32 PDT 2016


Is it only lldb-server you are having problems with? (i.e., are you
able to link liblldb.so?)

If so, then you might be able to make it link by reducing the number
of things that go into it. Right now lldb-server uses only a fraction
of its linker input, but we still need to pass in everything (and rely
on linker garbage collection to make sense of it) because it is not
possible to make a clear cut. This has several problems, most
important being that it is very easy to drastically increase the size
of the executable by random code perturbations. Being able to remove
all of clang from linker inputs would be a massive improvement, and it
would solve your problem as well. However, it is not going to be
easy...

pl


On 23 May 2016 at 22:28, Zachary Turner via lldb-dev
<lldb-dev at lists.llvm.org> wrote:
> cross building on a 64-bit machine using a 64-bit toolchain is what we have
> to do on Windows.
>
> On Mon, May 23, 2016 at 2:21 PM Greg Clayton via lldb-dev
> <lldb-dev at lists.llvm.org> wrote:
>>
>> Don't generate debug info would be one that comes to mind. The other is to
>> cross build for i386 on a 64 bit machine.
>>
>> Greg
>>
>> > On May 22, 2016, at 3:36 AM, Sylvestre Ledru via lldb-dev
>> > <lldb-dev at lists.llvm.org> wrote:
>> >
>> > Hello,
>> >
>> > Lately, I haven't been able to link lldb because it uses too much
>> > memory:
>> >
>> > /usr/bin/ld: final link failed: Memory exhausted
>> >
>> > As reported here:
>> >
>> > https://llvm.org/bugs/show_bug.cgi?id=27237
>> >
>> >
>> > (yes, I use shared libraries)
>> >
>> > Any workaround?
>> >
>> > Thanks,
>> > Sylvestre
>> > PS: please cc me !
>> >
>> > _______________________________________________
>> > lldb-dev mailing list
>> > lldb-dev at lists.llvm.org
>> > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>


More information about the lldb-dev mailing list