[GHC] #9382: Have rts/Linker.c lookupSymbol find symbols in the process executable.
#9382: Have rts/Linker.c lookupSymbol find symbols in the process executable. -------------------------------------+------------------------------------- Reporter: facundo.dominguez | Owner: Type: bug | facundo.dominguez Priority: normal | Status: new Component: Compiler | Milestone: Keywords: | Version: Architecture: Unknown/Multiple | Operating System: Windows Difficulty: Unknown | Type of failure: Blocked By: | None/Unknown Related Tickets: #9381 #7015 | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- In windows, the function `lookupSymbol` in `Linker.c` does not look for symbols exported in the executable. Thus, when a program is linked with `-optl -export-all-symbols`, the function `lookupSymbol` still fails to find them. Fixing this would improve the usability of `-rdynamic` (#9381) and an upcoming implementation for #7015. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9382> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9382: Have rts/Linker.c lookupSymbol find symbols in the process executable. -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: new Type: bug | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #9381 #7015 Test Case: | Blocking: | Differential Revisions: Phab:D103 | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * differential: => Phab:D103 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9382#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9382: Have rts/Linker.c lookupSymbol find symbols in the process executable. -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: patch Type: bug | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #9381 #7015 Test Case: | Blocking: | Differential Revisions: Phab:D103 | -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * status: new => patch -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9382#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9382: Have rts/Linker.c lookupSymbol find symbols in the process executable. -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: patch Type: bug | Milestone: Priority: normal | Version: Component: Compiler | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #9381 #7015 Test Case: | Blocking: | Differential Revisions: Phab:D103 | -------------------------------------+------------------------------------- Comment (by Austin Seipp <austin@…>): In [changeset:"d2f01000ac07678b971743ebf1650837aad19b9f/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="d2f01000ac07678b971743ebf1650837aad19b9f" Have the RTS linker search symbols in the originating windows binary. Summary: In initLinker, this patch adds the handle of the module corresponding to the program binary to the list of DLL handles that lookupSymbol uses to search for symbols. Test Plan: validate Reviewers: simonmar, austin Reviewed By: simonmar, austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D103 GHC Trac Issues: #9382 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9382#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9382: Have rts/Linker.c lookupSymbol find symbols in the process executable. -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez facundo.dominguez | Status: closed Type: bug | Milestone: 7.10.1 Priority: normal | Version: Component: Compiler | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: Windows | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: #9381 #7015 Test Case: | Blocking: | Differential Revisions: Phab:D103 | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: => 7.10.1 Comment: Merged, thanks. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9382#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC