This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RISC-V: Relax RISCV_PCREL_* to RISCV_GPREL_*
- From: Palmer Dabbelt <palmer at dabbelt dot com>
- To: binutils at sourceware dot org
- Cc: patches at groups dot riscv dot org
- Date: Tue, 10 Oct 2017 14:56:11 -0700
- Subject: RISC-V: Relax RISCV_PCREL_* to RISCV_GPREL_*
- Authentication-results: sourceware.org; auth=none
I've had these two patches sitting in my tree for a few months. I've been
slowly going though and testing all our out-of-tree patches and getting them
upstream, with these two as the last major ones we have. I was hoping to go
convert all our relaxations over to using R_RISCV_DELETE, with the idea being
that we could avoid the O(n^2) copying we do when relaxing, but it looks like I
won't get time to do that for a while.
Despite the patches not being quite done, they do seem to work correctly
(they're been on the branch we at SiFive make releases from for a while),
enable a new optimization, and generally don't seem to hurt -- essentially they
just add some code that should be used to clean up a few more places.
I'll commit these to master unless anyone has any objections or notices
anything I screwed up :).
[PATCH 1/2] RISC-V: Add R_RISCV_DELETE, which marks bytes for
[PATCH 2/2] RISC-V: Relax RISCV_PCREL_* to RISCV_GPREL_*