[GHC] #14311: PowerPC: Symbol already defined
GHC
ghc-devs at haskell.org
Thu Nov 9 23:34:54 UTC 2017
#14311: PowerPC: Symbol already defined
----------------------------------------+-------------------------------
Reporter: trommler | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: powerpc
Type of failure: Building GHC failed | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
----------------------------------------+-------------------------------
Comment (by Ben Gamari <ben@…>):
In [changeset:"f8e7fece58fa082b8b5a87fb84ffd5d18500d26a/ghc"
f8e7fece/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="f8e7fece58fa082b8b5a87fb84ffd5d18500d26a"
Fix PPC NCG after blockID patch
Commit rGHC8b007ab assigns the same label to the first basic block
of a proc and to the proc entry point. This violates the PPC 64-bit ELF
v. 1.9 and v. 2.0 ABIs and leads to duplicate symbols.
This patch fixes duplicate symbols caused by block labels
In commit rGHCd7b8da1 an info table label is generated from a block id.
Getting the entry label from that info label leads to an undefined
symbol because a suffix "_entry" that is not present in the block label.
To fix that issue add a new info table label flavour for labels
derived from block ids. Converting such a label with toEntryLabel
produces the original block label.
Fixes #14311
Test Plan: ./validate
Reviewers: austin, bgamari, simonmar, erikd, hvr, angerman
Reviewed By: bgamari
Subscribers: rwbarton, thomie
GHC Trac Issues: #14311
Differential Revision: https://phabricator.haskell.org/D4149
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14311#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list