[backport proposed fix for PR47230 bootstrap failure on alpha-linux ] Date: Mon, 2 May 2011 09:21:27 +0200 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 List-Archive: 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. --- gcc-4.6.2/config/mh-alpha-linux.~1~ 1970-01-01 01:00:00.000000000 +0100 +++ gcc-4.6.2/config/mh-alpha-linux 2011-11-19 21:15:03.000000000 +0100 @@ -0,0 +1,3 @@ +# Prevent GPREL16 relocation truncation +LDFLAGS += -Wl,--no-relax +BOOT_LDFLAGS += -Wl,--no-relax --- gcc-4.6.2/configure.ac.~1~ 2011-06-27 22:54:59.000000000 +0200 +++ gcc-4.6.2/configure.ac 2011-11-19 21:15:03.000000000 +0100 @@ -1197,6 +1197,9 @@ case "${host}" in # without overflowing the jump tables (-J says to use a 32 bit table) tentative_cc="cc -J" ;; + alpha*-*-linux*) + host_makefile_frag="config/mh-alpha-linux" + ;; hppa*-hp-hpux10*) tentative_cc="cc -Wp,-H256000" host_makefile_frag="config/mh-pa-hpux10" --- gcc-4.6.2/configure.~1~ 2011-06-27 22:54:59.000000000 +0200 +++ gcc-4.6.2/configure 2011-11-19 21:15:03.000000000 +0100 @@ -3770,6 +3770,9 @@ fi # without overflowing the jump tables (-J says to use a 32 bit table) tentative_cc="cc -J" ;; + alpha*-*-linux*) + host_makefile_frag="config/mh-alpha-linux" + ;; hppa*-hp-hpux10*) tentative_cc="cc -Wp,-H256000" host_makefile_frag="config/mh-pa-hpux10"