Bug 271043

Summary: Valgrind build fails with assembler error on ppc64 with binutils 2.21
Product: [Developer tools] valgrind Reporter: Maynard Johnson <maynardj>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.7 SVN   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch to fix this bug

Description Maynard Johnson 2011-04-15 17:51:05 UTC
Created attachment 59016 [details]
Patch to fix this bug

Building Valgrind on a ppc64 system using a newer toolchain (in particular, binutils 2.21) results in the following error:

m_dispatch/dispatch-ppc64-linux.S: Assembler messages:
m_dispatch/dispatch-ppc64-linux.S:659: Error: .size expression does not evaluate to a constant
m_dispatch/dispatch-ppc64-linux.S:659: Error: .size expression does not evaluate to a constant

The new assembler has plugged a hole that existed in previous versions and correctly identifies a problem in the coding of dispatch-ppc64-linux.S.  The attached patch fixes this problem.
Comment 1 Julian Seward 2011-04-15 23:14:38 UTC
Committed, r11700.