[GHC] #8024: Dynamic linking not working on PowerPC Linux.

GHC ghc-devs at haskell.org
Sun Dec 14 14:30:23 UTC 2014


#8024: Dynamic linking not working on PowerPC Linux.
----------------------------------------------+---------------------------
              Reporter:  erikd                |            Owner:
                  Type:  bug                  |           Status:  patch
              Priority:  normal               |        Milestone:
             Component:  Compiler             |          Version:  7.7
            Resolution:                       |         Keywords:
      Operating System:  Linux                |     Architecture:  powerpc
       Type of failure:  Building GHC failed  |       Difficulty:  Unknown
             Test Case:                       |       Blocked By:
              Blocking:                       |  Related Tickets:
Differential Revisions:  D560                 |
----------------------------------------------+---------------------------

Comment (by Sergei Trofimovich <siarheit@…>):

 In [changeset:"fa31e8f4a0f853848d96549a429083941877bf8d/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="fa31e8f4a0f853848d96549a429083941877bf8d"
 powerpc: fix and enable shared libraries by default on linux

 Summary:
 And fix things all the way down to it. Namely:
     - remove 'r30' from free registers, it's an .LCTOC1 register
       for gcc. generated .plt stubs expect it to be initialised.
     - fix PicBase computation, which originally forgot to use 'tmp'
       reg in 'initializePicBase_ppc.fetchPC'
     - mark 'ForeighTarget's as implicitly using 'PicBase' register
       (see comment for details)
     - add 64-bit MO_Sub and test on alloclimit3/4 regtests
     - fix dynamic label offsets to match with .LCTOC1 offset

 Signed-off-by: Sergei Trofimovich <siarheit at google.com>

 Test Plan: validate passes equal amount of vanilla/dyn tests

 Reviewers: simonmar, erikd, austin

 Reviewed By: erikd, austin

 Subscribers: carter, thomie

 Differential Revision: https://phabricator.haskell.org/D560

 GHC Trac Issues: #8024, #9831
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8024#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list