Displaying 20 results from an estimated 10000 matches similar to: "[LLD] Slow callstacks in gdb"
2017 Nov 27
2
[LLD] Slow callstacks in gdb
Is the program being built by gcc or clang?
Cheers,
Rafael
Rafael Avila de Espindola <rafael.espindola at gmail.com> writes:
> Martin Richtarsky via llvm-dev <llvm-dev at lists.llvm.org> writes:
>
>> Hi,
>>
>> for programs linked with lld it's substantially slower to get callstacks
>> in gdb, in comparison to gold-linked programs. Two measurements:
2017 Nov 28
2
[LLD] Slow callstacks in gdb
Martin Richtarsky <s at martinien.de> writes:
> Hi,
>
>> Is the program being built by gcc or clang?
> gcc 6, but I can try clang.
>
>> Are both using --gdb-index? Can you try lld trunk if so?
> No.
>
>> Is any of the programs you tested open source?
> No.
>
> Here is some more info. I enabled "set verbose on" in gdb. With this
>
2017 Dec 05
2
[LLD] Slow callstacks in gdb
Martin Richtarsky <s at martinien.de> writes:
> Output looks as follows [1] Seems sh_offset is missing?
That is what readelf prints as Off
> [17] .rela.text RELA 0000000000000000 071423 001728 18
> 1 4 8
The offset of rela text should have been aligned, but it is not. Can you
report a bug on icc? As a work around using the gnu assembler if
possible
2017 Dec 02
2
[LLD] Slow callstacks in gdb
Martin Richtarsky <s at martinien.de> writes:
> Rafael Avila de Espindola wrote :
>>> Maybe gdb needs to fall back to slower line number resolution because
>>> e.g.
>>> low and high bounds cannot be retrieved and debug_line_address is 0?
>>
>> It is hard to know without a reproducible. I tried gdb on clang itself
>> build with both clang and
2017 Dec 05
2
[LLD] Slow callstacks in gdb
Martin Richtarsky <s at martinien.de> writes:
> Rafael Avila de Espindola wrote:
>>> I will retry with clang trunk, when it reproduces I will build some
>>> other
>>> large project (that has DSOs) using our compile/link options (they are
>>> not
>>> that special, I think).
>>
>> If you can try lld trunk too that would be awesome.
2017 Dec 06
2
[LLD] Slow callstacks in gdb
Rui Ueyama <ruiu at google.com> writes:
> On Tue, Dec 5, 2017 at 1:22 PM, Rafael Avila de Espindola <
> rafael.espindola at gmail.com> wrote:
>
>> Martin Richtarsky <s at martinien.de> writes:
>>
>> > Output looks as follows [1] Seems sh_offset is missing?
>>
>> That is what readelf prints as Off
>>
>> > [17] .rela.text
2017 Mar 23
2
[LLD] Linking static library does not resolve symbols as gold/ld
Hi Martin,
It's hard to tell what is wrong only with the information. If that is an
open-source program, can you give me a link to that so that I can try? If
that's a proprietary software you cannot share with me, you might want to
produce small reproducible test case.
On Thu, Mar 23, 2017 at 1:10 AM, Martin Richtarsky <s at martinien.de> wrote:
> Hi Rui,
>
> fyi I'm
2017 Mar 15
2
[LLD] Linking static library does not resolve symbols as gold/ld
On Wed, Mar 15, 2017 at 2:22 PM, Martin Richtarsky <s at martinien.de> wrote:
> Here is the relevant output:
>
> 0000000000013832 <func()>:
> 13832: 55 push %rbp
> 13833: 48 89 e5 mov %rsp,%rbp
> 13836: 53 push %rbx
> 13837: 48 83 ec 18 sub $0x18,%rsp
2017 Mar 15
2
[LLD] Linking static library does not resolve symbols as gold/ld
Compilers don't know about functions that are not defined in the same
compilation unit, so they leave call instruction operands as zero (because
they can't compute any absolute nor relative address of the destinations),
and let linkers fix the address by binary patching.
So, what you are seeing is likely a bug of LLD that it fails to fix the
address for some reason.
Can you dump that
2017 Mar 23
4
[LLD] Can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment
Hi,
the attached example works with bfd-ld and with gold, but not with lld:
$ cat rodatareloc.s
...
.align 16
leaq .JTab(%rip), %r10
jmp *(%r10, %rdx, 8)
...
.section .rodata
.JTab:
.quad .L00, .L01, .L02, .L03, .L04, .L05, .L06, .L07
.quad .L08, .L09, .L10, .L11, .L12, .L13, .L14, .L15, .L16
$ gcc -o rodatareloc.s.o -c rodatareloc.s
$ lld -o rodatareloc.so -shared
2017 Mar 23
3
[LLD] Can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment
Rafael Avila de Espindola wrote:
>> $ gcc -o rodatareloc.s.o -c rodatareloc.s
>> $ lld -o rodatareloc.so -shared rodatareloc.s.o
>>
>> ld: error: rodatareloc.s.o:(.rodata+0x0): can't create dynamic
>> relocation
>> R_X86_64_64 against local symbol in readonly segment defined in
>> rodatareloc.s.o
>>
>>
>> Changing the section from
2017 Apr 25
1
[LLD] Linking static library does not resolve symbols as gold/ld
Hi Martin,
Thank you for sending the script. I can reproduce the issue with it. It
looks like the program crashes when it tries to call
std::vector<sometype>'s ctor from a static initializer. I don't fully
understand what is causing the issue yet, but here are my observations.
- Since you are creating a temporary object file using `ld.gold -r`, your
object file contains multiple
2015 Mar 02
2
[LLVMdev] [cfe-dev] LLVM 3.6 Release
Hi Martin,
The key is available on the keys.gnupg.net key server. I'm also
attaching it to this email for convenience.
Would posting it on the release page really help? The user would still
need to trust the page to trust the key.
Thanks,
Hans
On Mon, Mar 2, 2015 at 5:58 AM, Richtarsky, Martin
<martin.richtarsky at sap.com> wrote:
> Hi Hans,
>
> I want to verify the
2018 Jan 19
0
[JIT] Evaluating Debug-Metadata in bitcode
Hi Björn,
I'm not sure I understand what you are actually trying to achieve.
Do you want to be able to debug from your main code, and step into the
JITed code?
Do you want to be able to set breakpoints, list callstacks, etc in the
JITed code?
Do you want to, from a crash, identify where in your JITed code it went
wrong?
The first two are definitely one or more order(s) of magnitude harder
2017 Aug 01
2
ubsan no longer compiles when libc++ is the default
Hi,
Trying to compile llvm with the following configuration on Linux x86-64:
cmake -G Ninja -DBUILD_SHARED_LIBS=ON \
-DCMAKE_SHARED_LINKER_FLAGS="-fuse-ld=gold"
\
-DCMAKE_EXE_LINKER_FLAGS="-fuse-ld=gold"\
-DCMAKE_BUILD_TYPE=RelWithDebInfo ' \
-DCMAKE_C_FLAGS="-O2 -g" \
2017 Aug 02
2
ubsan no longer compiles when libc++ is the default
Hi,
I see the following variables in the CMakeCache.txt:
SANITIZER_CXX_ABI:STRING=default
//STRINGS property for variable: SANITIZER_CXX_ABI
SANITIZER_CXX_ABI-STRINGS:INTERNAL=none;default;libcxxabi;libstdc++
Regards,
ismail
On Tue, Aug 1, 2017 at 7:32 PM, Vedant Kumar <vsk at apple.com> wrote:
>
>> On Aug 1, 2017, at 7:07 AM, İsmail Dönmez via llvm-dev <llvm-dev at
2020 May 05
3
[lld] Reject some lld specific one-dash long options
GNU ld supports most long options with either one or two dashes. For
compatibility, lld has to support both.
For newer and lld specific options, we don't have such compatibility
problem. I'd suggest we reject one-dash long options to avoid collision
with short options. For example,
* -lto-emit-obj can be read as -l to-emit-obj
* -thinlto-cache-dir= means -t -h inlto-cache-dir= in GNU
2016 Nov 16
3
LLD: time to enable --threads by default
On 16 November 2016 at 15:52, Rafael Espíndola
<rafael.espindola at gmail.com> wrote:
> I will do a quick benchmark run.
On a mac pro (running linux) the results I got with all cores available:
firefox
master 7.146418217
patch 5.304271767 1.34729488437x faster
firefox-gc
master 7.316743822
patch 5.46436812 1.33899174824x faster
chromium
master 4.265597914
patch
2016 Oct 19
7
Embedding LLD version to executables
I'd like to make LLD embed version information so that we can determine if
an executable was created by LLD and if that's the case which version of
LLD.
ld.bfd doesn't seem to embed any information, so we cannot tell whether an
executable was linked by ld.bfd or not easily.
ld.gold embeds a string "GNU gold <version>" as ".note.gnu.gold-version"
section
2016 Nov 17
3
LLD: time to enable --threads by default
SHA1 in LLVM is *very* naive, any improvement is welcome there!
It think Amaury pointed it originally and he had an alternative implementation IIRC.
—
Mehdi
> On Nov 16, 2016, at 3:58 PM, Rui Ueyama via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> By the way, while running benchmark, I found that our SHA1 function seems much slower than the one in gold. gold slowed down by