Prohibit relaxing the initial gp generation
authorPalmer Dabbelt <palmer@dabbelt.com>
Fri, 17 Mar 2017 22:39:02 +0000 (15:39 -0700)
committerAndrew Waterman <andrew@sifive.com>
Thu, 30 Mar 2017 02:47:17 +0000 (19:47 -0700)
I've added an additional linker relaxation that relaxes two instruction
pc-relative sequences to one instruction gp relative sequences when
possible.  This sequence now optimizes the initial gp generation to

  mv gp, gp

which is obviously bogus.  The fix is to disable relaxations when
setting up gp, preventing the linker from relaxing away this setup code.


No differences found