]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
RISC-V/GAS: Correct branch relaxation for weak symbols.
authorAndrew Waterman <andrew@sifive.com>
Mon, 9 Jan 2017 09:22:33 +0000 (09:22 +0000)
committerPalmer Dabbelt <palmer@dabbelt.com>
Tue, 17 Jan 2017 05:33:14 +0000 (21:33 -0800)
gas/ChangeLog

2017-01-09  Andrew Waterman <andrew@sifive.com>

* config/tc-riscv.c (relaxed_branch_length): Use the long
sequence when the target is a weak symbol.

gas/ChangeLog
gas/config/tc-riscv.c

index bcd25a2869d653ff987f5ddce8805d4231fe3f3d..72c9db2e93a6242be833508cfcf7e6e423199fa3 100644 (file)
        * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.d: Ditto.
        * testsuite/gas/i386/x86-64-avx512_vpopcntdqd.s: Ditto.
 
+2017-01-09  Andrew Waterman <andrew@sifive.com>
+
+       * config/tc-riscv.c (relaxed_branch_length): Use the long
+       sequence when the target is a weak symbol.
+
+2017-01-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+       * config/tc-aarch64.c (aarch64_features): Add rcpc.
+       * doc/c-aarch64.texi (AArch64 Extensions): Document rcpc.
+       * testsuite/gas/aarch64/ldst-exclusive-armv8_3.d: Rename to ...
+       * testsuite/gas/aarch64/ldst-rcpc.d: This.
+       * testsuite/gas/aarch64/ldst-exclusive-armv8_3.s: Rename to ...
+       * testsuite/gas/aarch64/ldst-rcpc.s: This.
+       * testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: New test.
+
+2017-01-04  Norm Jacobs  <norm.jacobs@oracle.com>
+
+       PR gas/20992
+       * configure.tgt: Treat sparcv9 as sparc64.
+
+2017-01-03  Kito Cheng  <kito.cheng@gmail.com>
+
+       * config/tc-riscv.c (riscv_set_arch): Whitelist the "q" ISA
+       extension.
+       (riscv_after_parse_args): Set FLOAT_ABI_QUAD when the Q ISA is
+       enabled and no other ABI is specified.
+
+2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
+
+       * config/tc-pru.c (md_number_to_chars): Fix parameter to be
+       valueT, as declared in tc.h.
+       (md_apply_fix): Fix to work on 32-bit hosts.
+>>>>>>> 0115611... RISC-V/GAS: Correct branch relaxation for weak symbols.
+
 2017-01-02  Alan Modra  <amodra@gmail.com>
 
        Update year range in copyright notice of all files.
index 7f3b6cf2befe318914464de433b6789a0e3a83fb..3fe9e63a3920e8d4d1c61e42a8848a4edf4fcc77 100644 (file)
@@ -354,6 +354,7 @@ relaxed_branch_length (fragS *fragp, asection *sec, int update)
 
   if (fragp->fr_symbol != NULL
       && S_IS_DEFINED (fragp->fr_symbol)
+      && !S_IS_WEAK (fragp->fr_symbol)
       && sec == S_GET_SEGMENT (fragp->fr_symbol))
     {
       offsetT val = S_GET_VALUE (fragp->fr_symbol) + fragp->fr_offset;