-
Notifications
You must be signed in to change notification settings - Fork 179
perf2bolt crashes with Assertion #10
Comments
I built a version with out the
looking at the executable shows the following
|
I also noticed that |
I think the dump includes allocatable sections only, that's why |
I was able to debug the second problem. BOLT stops on one of the assembly routines in openssl. I was able to solve the problem temporarily by using openssl without the assembly routines. perf2bolt and llvm-bolt suceeds. On on microbenchmark, I am getting 3% performance improvement. I will try other workloads and report. Let me also try the original problem which was the binary with 2 text segments. |
I am leaving this bug open. The original problem of two text sections still seem to fail.
This executable has two text sections
|
Hi, I have a same bolt error: and my binary does have .rela.text section Thanks |
Hi @suresh-srinivas, the problem no longer reproduces with the recent BOLT. I've managed to successfully optimize NodeJS with BOLT and posted my notes here: https://aaupov.github.io/blog/2020/10/08/bolt-nodejs. I think we can close this issue. Please open a new one if you run into any further problems. |
Thanks @aaupov . I will check it out. The original problem I had was with OpenSSL. Was your nodejs statically built? |
@suresh-srinivas, no, I wasn't using static flags, let me double check. |
I've checked static builds, seems like the original issue with OpenSSL doesn't reproduce with recent NodeJS and BOLT.
|
Closing the issue as BOLT is able to process Node binary. |
Thank you for open sourcing this.
Looks like I am missing something. I built the binary with '-Wl,--emit-relocs',
Software versions
I also have one function in a different section '.lpstub'.
I have the following sections in the executable
The text was updated successfully, but these errors were encountered: