Issue 117903
Summary Bolt crash
Labels BOLT
Assignees
Reporter when-hao
    English:
I used the Android NDK to cross-compile an llvm-bolt for arm64-v8a architecture from GitHub Actions. When I tried to instrument a simple program that was compiled with clang and already had the -Wl,--emit-relocs option added, using it in Termux, I encountered the following issue. How can I resolve this?

中文:
我从github action中使用android ndk交叉编译了一份基于arm64-v8a的llvm-bolt,当我在termux中尝试为一个使用clang编译并已经添加-Wl,--emit-relocs的简单程序进行instrument时遇到下面的情况,我该怎么解决这个?


> ❯ ../bolt/bin/llvm-bolt ms2 -instrument -o ims2 -v 1
BOLT-INFO: shared object or position-independent executable detected
BOLT-INFO: Target architecture: aarch64
BOLT-INFO: BOLT version: 561797000ac11cdf1538673c5c487c139b327aed     
BOLT-INFO: first alloc address is 0x0                                 
BOLT-INFO: creating new program header table at address 0x200000, offset 0x200000
BOLT-INFO: marking .init_array as GNU_RELRO                           
BOLT-INFO: marking .fini_array as GNU_RELRO                           
BOLT-INFO: marking .dynamic as GNU_RELRO                              
BOLT-INFO: marking .got as GNU_RELRO                                  
BOLT-INFO: marking .got.plt as GNU_RELRO                              
BOLT-INFO: marking .relro_padding as GNU_RELRO                        
BOLT-INFO: enabling relocation mode
BOLT-INFO: forcing -jump-tables=move for instrumentation              
BOLT-INFO: setting size of function __BOLT_PSEUDO_.plt to 32 (was 0)  
BOLT-INFO: setting size of function __libc_init@PLT to 16 (was 0)     
BOLT-INFO: setting size of function __cxa_atexit@PLT to 16 (was 0)    
BOLT-INFO: setting size of function __register_atfork@PLT to 16 (was 0)                                                                    
BOLT-INFO: setting size of function printf@PLT to 16 (was 0)          
BOLT-INFO: setting size of function exit@PLT to 16 (was 0)
LLVM ERROR: annotation value out of range                             
LLVM ERROR: annotation value out of range                             
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
fish: Job 1, '../bolt/bin/llvm-bolt ms2 -inst…' terminated by signal SIGABRT (Abort)


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to