Re: [GHC] #4210: LLVM: Dynamic Library Support
#4210: LLVM: Dynamic Library Support -------------------------------------+------------------------------------ Reporter: dterei | Owner: dterei Type: feature request | Status: closed Priority: low | Milestone: 7.6.2 Component: Compiler (LLVM) | Version: 6.13 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Runtime crash | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by bgamari): Actually, this is quite perplexing as I would have expected the R_ARM_COPY relocation to have already been performed by ld.so by the time we get to executing code. That being said, in place of numerous data symbols I see what appears to be trampoline code, {{{ #5 0xb61f8eaa in evacuate (p=0xb5cfd194) at rts/sm/Evac.c:384 384 ASSERTM(LOOKS_LIKE_CLOSURE_PTR(q), "invalid closure, info=%p", q->header.info); (gdb) print q $1 = (StgClosure *) 0x16bf8 <Main_zdfEqModule_closure> (gdb) print *q $2 = {header = {info = 0x16d64 <ghczmprim_GHCziClasses_DZCEq_static_info>}, payload = 0x16bfc <Main_zdfEqModule_closure+4>} (gdb) x /5i 0x16d64 0x16d64 <ghczmprim_GHCziClasses_DZCEq_static_info>: ldr r3, [r5] 0x16d68 <ghczmprim_GHCziClasses_DZCEq_static_info+4>: add r7, r7, #1 0x16d6c <ghczmprim_GHCziClasses_DZCEq_static_info+8>: blx r3 0x16d70 <ghczmprim_GHCziClasses_DZCEq_static_info+12>: bx lr 0x16d74: movs r0, r0 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/4210#comment:30> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC