From patchwork Mon May 2 07:21:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 93593 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 8D2DAB6F08 for ; Mon, 2 May 2011 17:21:56 +1000 (EST) Received: (qmail 28262 invoked by alias); 2 May 2011 07:21:53 -0000 Received: (qmail 28251 invoked by uid 22791); 2 May 2011 07:21:52 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RFC_ABUSE_POST, TW_ZJ, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-px0-f177.google.com (HELO mail-px0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 02 May 2011 07:21:28 +0000 Received: by pxi10 with SMTP id 10so2043775pxi.8 for ; Mon, 02 May 2011 00:21:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.19.5 with SMTP id w5mr3131838wfi.40.1304320887962; Mon, 02 May 2011 00:21:27 -0700 (PDT) Received: by 10.143.158.12 with HTTP; Mon, 2 May 2011 00:21:27 -0700 (PDT) Date: Mon, 2 May 2011 09:21:27 +0200 Message-ID: Subject: [PATCH, alpha]: Fix PR/47230 [4.6/4.7 Regression] gcc fails to bootstrap on alpha in stage2 with "relocation truncated to fit: GPREL16 against ..." From: Uros Bizjak To: gcc-patches@gcc.gnu.org Cc: Richard Henderson Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello! It looks that GP relative relocations do not fit anymore into GPREL16 reloc, so bootstrap on alpha hosts fail in stage2 with "relocation truncated to fit: GPREL16 against ...". I found no other solution but to pass --no-relax to linker in order to finish the bootstrap. 2011-05-02 Uros Bizjak PR target/47230 * configure.ac (alpha*-*-linux*): Use mh-alpha-linux. * configure: Regenerate. config/ChangeLog: 2011-05-02 Uros Bizjak PR target/47230 * mh-alpha-linux: New file. Patch was bootstrapped and regression tested with "GNU ld (GNU Binutils) 2.21" on alphaev68-pc-linux-gnu [1]. OK for 4.6. and 4.7 ? [1] http://gcc.gnu.org/ml/gcc-testresults/2011-05/msg00089.html Uros. Index: configure.ac =================================================================== --- configure.ac (revision 173233) +++ configure.ac (working copy) @@ -1100,6 +1100,9 @@ *-interix*) host_makefile_frag="config/mh-interix" ;; + alpha*-*-linux*) + host_makefile_frag="config/mh-alpha-linux" + ;; hppa*-hp-hpux10*) host_makefile_frag="config/mh-pa-hpux10" ;; Index: configure =================================================================== --- configure (revision 173233) +++ configure (working copy) @@ -3672,6 +3672,9 @@ *-interix*) host_makefile_frag="config/mh-interix" ;; + alpha*-*-linux*) + host_makefile_frag="config/mh-alpha-linux" + ;; hppa*-hp-hpux10*) host_makefile_frag="config/mh-pa-hpux10" ;; Index: config/mh-alpha-linux =================================================================== --- config/mh-alpha-linux (revision 0) +++ config/mh-alpha-linux (revision 0) @@ -0,0 +1,3 @@ +# Prevent GPREL16 relocation truncation +LDFLAGS += -Wl,--no-relax +BOOT_LDFLAGS += -Wl,--no-relax