[commit: testsuite] master: Fix memcpy when -fPIC is on (e4de0a1)

Ian Lynagh <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e4de0a19149980a2e624c311778995f86e372bd7

>---------------------------------------------------------------

commit e4de0a19149980a2e624c311778995f86e372bd7
Author: Ian Lynagh <[email protected]>
Date:   Sat Oct 13 15:43:08 2012 +0100

    Fix memcpy when -fPIC is on
    
    We get a reference to memcpy@plt rather than memcpy

>---------------------------------------------------------------

 driver/testlib.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/driver/testlib.py b/driver/testlib.py
index 25b550a..c9dcc17 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -1753,6 +1753,7 @@ def normalise_asm( str ):
     for line in lines:
       # Drop metadata directives (e.g. ".type")
       if not metadata.match(line):
+        line = re.sub('@plt', '', line)
         instr = line.lstrip().split()
         # Drop empty lines.
         if not instr:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.