#2615: ghci doesn't play nice with linker scripts
---------------------------------+------------------------------------------
Reporter: AlecBerryman | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.12.1
Component: GHCi | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by hgolden):
At least on Gentoo, I think this can be dealt with as follows:
1. In Linker.c if dlopen fails, search the file with a regular expression
that would recognize "GROUP ( ... )" where ... is the important part. In
Gentoo, when a .so file contains a linker script, the actual file is
specified by the GROUP ( ... ).
1. If this is found, try the dlopen again using the filename.
1. If this fails, report an error.
I'm not familiar with debian or debian-based distros. Do they use a
similar approach? If so, a regular expression search for their filename in
the script could be added as well.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2615#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs