Open abrodkin opened 3 years ago
That's the part of libgcc_s.so.1
where it fails:
000000000000a274 <_Unwind_SetGR@@GCC_3.0>:
a274:» 218c 88c1 » cmp» r1,99
a278:» f6c7 » ble_s» 14» ;a286 <_Unwind_SetGR@@GCC_3.0+0x12>
a27a:» c7e7 » pushl_s»blink
a27c:» 2731 ff00 0000 7bcc » ldl» r0,[pcl,31692@s32]» ;11e48 <__emutls_register_common@@GCC_4.3.0+0x43b8>
a284:» 7840 » jl_s» [r0]
a286:» 592f 0047 » sexwl» r1,r1
a28a:» 5f00 7f03 0000 7df4 » addl» r3,pcl,32244@s32» ;1207c <__emutls_register_common@@GCC_4.3.0+0x45ec>
a292:» 2332 0044 » ldb» r4,[r3,r1]
a296:» 106a 0e43 » ldl.as» r3,[r0,106]
a29a:» 5b51 8f80 » btstl» r3,0x3e
a29e:» f20e » beq_s» 28» ;a2b8 <_Unwind_SetGR@@GCC_3.0+0x44>
a2a0:» 5800 0043 » addl» r3,r0,r1
a2a4:» 5b96 0b41 » add3l» r3,r3,109
a2a8:» 8b60 » ldb_s» r3,[r3,0]
a2aa:» 7b6b » tst_s» r3,r3
a2ac:» f206 » beq_s» 12» ;a2b8 <_Unwind_SetGR@@GCC_3.0+0x44>
a2ae:» 5816 0041 » add3l» r1,r0,r1
a2b2:» 1900 0087 » stl» r2,[r1]
a2b6:» 7ee0 » j_s» [blink]
a2b8:» 20f1 8040 » ldl.as» r0,[r0,r1]
a2bc:» 244c 8200 » cmp» r4,0x8
a2c0:» f5dd » bne_s» -70» ;a27a <_Unwind_SetGR@@GCC_3.0+0x6>
a2c2:» 1800 0087 » stl» r2,[r0] <--- HERE WE FAIL
a2c6:» 7ee0 » j_s» [blink]
@claziss @vineetgarc yet another unwinder-related problem? Or https://github.com/foss-for-synopsys-dwc-arc-processors/linux/issues/38 is only applicable to the kernel and user-space unwinder is supposed to work?
It is libgcc, it is unwind procedure, probably it is unwinding issue.
Fails exactly the same in both QEMU & nSIM
nsimdrv -prop=nsim_isa_vec64=1 -prop=nsim_isa_family=arc64 -prop=nsim_isa_enable_timer_0=1 -prop=nsim_isa_enable_timer_1=1 -prop=nsim_isa_addr_size=64 -prop=nsim_isa_pc_size=64 -prop=icache=16384,64,4,o -prop=dcache=16384,64,4,o -prop=mmu_version=6 -prop=mmu_pagesize=4096 -prop=mmu_address_space=48 -prop=nsim_mem-dev=uart0,kind=dwuart,base=0xf0000000,irq=24 -prop=nsim_isa_mpy_option=3 -prop=nsim_isa_mpy64=1 -prop=nsim_isa_div64_option=1 -prop=nsim_isa_div_rem_option=2 -prop=nsim_isa_atomic_option=1 ./vmlinux
qemu-system-arc64 -M simhs -global cpu.mmuv6=true -nographic -no-reboot -serial stdio -monitor none -cpu arc64 -kernel vmlinux
Attached vmlinux-arc64-specint2006-omnetpp.2021.04.01.zip
To extract
initramfs.cpio.gz
doarc64-elf-objcopy -O binary --only-section=.init.ramfs vmlinux initramfs.cpio.gz
.