[GHC] #9280: GHCi crash: illegal text-relocation; relocation R_X86_64_PC32 against undefined symbol _ can not be used when making a shared object
GHC
ghc-devs at haskell.org
Mon Jul 7 15:17:36 UTC 2014
#9280: GHCi crash: illegal text-relocation; relocation R_X86_64_PC32 against
undefined symbol _ can not be used when making a shared object
--------------------------------+------------------------------------------
Reporter: mietek | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.8.2
Resolution: | Keywords: crash, dynamic linking
Operating System: | Architecture: x86_64 (amd64)
Unknown/Multiple | Difficulty: Unknown
Type of failure: GHCi crash | Blocked By:
Test Case: | Related Tickets:
Blocking: |
--------------------------------+------------------------------------------
Comment (by mietek):
As discussed on IRC with '''rwbarton''', it's questionable whether this is
an issue besides "you're not supposed to do this".
On one hand, GHCi claims it can load object files, and GHCi 7.6.3 does not
crash when fed with an `.o` file produced by itself.
On the other hand, feeding an `.o` file to GHCi 7.6.3 is not useful, as
there is apparently no way to bring the functions declared in the
corresponding `.hi` file into scope.
I see two solutions — either adjust user expectations, or allow feeding
GHCi explicitly with `.o`/`.hi` pairs, in the absence of an `.hs` file.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9280#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list