From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Anderson Date: Thu, 19 Dec 2019 12:24:00 -0500 Subject: [PATCH] riscv: Fix breakage caused by linker relaxation In-Reply-To: References: <07e07d7d-4b4e-b74b-ed53-3d1a191ce1af@gmail.com> Message-ID: <7d68dfa4-5bdf-69df-2b6d-8f41b3ef3310@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > But I wonder how U-Boot managed to work on RISC-V till today? Hm. I think that linker relaxations may also have been disabled by linking with -pie. When I discovered this bug, I had disabled the flag since I was having a hard time getting my compiler to build with --enable-shared. When recompiling with -pie and with __global_pointer defined, the problem assembly code I noticed now uses the two-instruction auipc/lw sequence. --Sean