From patchwork Thu Feb 5 14:28:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chung-Lin Tang X-Patchwork-Id: 4926 Received: (qmail 16824 invoked by alias); 5 Feb 2015 14:28:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 16783 invoked by uid 89); 5 Feb 2015 14:28:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Message-ID: <54D37E11.2050407@codesourcery.com> Date: Thu, 5 Feb 2015 22:28:33 +0800 From: Chung-Lin Tang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: GNU C Library Subject: [PATCH COMMITTED] nios2: fix -pg static link problem There was a typo error in sysdeps/nios2/machine-gmon.h, a missing leading "__" which of course causes linking with '-static -pg to fail. Patch committed. Chung-Lin 2015-02-05 Chung-Lin Tang * sysdeps/nios2/machine-gmon.h (NIOS2_MCOUNT_CALL): Correct name of called function in non-PIC case. diff --git a/sysdeps/nios2/machine-gmon.h b/sysdeps/nios2/machine-gmon.h index 1f0ea8f..039d253 100644 --- a/sysdeps/nios2/machine-gmon.h +++ b/sysdeps/nios2/machine-gmon.h @@ -35,7 +35,7 @@ static void __attribute_used__ __mcount_internal (u_long frompc, u_long selfpc) "callr r2\n\t" #else #define NIOS2_MCOUNT_CALL \ - "call\tmcount_internal\n\t" + "call\t__mcount_internal\n\t" #endif #define MCOUNT \