gas/
[deliverable/binutils-gdb.git] / gas / write.c
index 22e68c5ec8fe0474d9b2df97701298b5f06c5ee4..745abe66d8d844e45d3060d2b99ac3d960a9a291 100644 (file)
@@ -722,9 +722,10 @@ resolve_reloc_expr_symbols (void)
                 unless it has enough bits to cover the whole address
                 space.  */
              if (S_IS_LOCAL (sym) && !symbol_section_p (sym)
-                 && !(howto->partial_inplace
-                      && howto->pc_relative
-                      && howto->src_mask != addr_mask))
+                 && (sec->use_rela_p
+                     || (howto->partial_inplace
+                         && (!howto->pc_relative
+                             || howto->src_mask == addr_mask))))
                {
                  asection *symsec = S_GET_SEGMENT (sym);
                  if (!(((symsec->flags & SEC_MERGE) != 0
This page took 0.023783 seconds and 4 git commands to generate.