* config/tc-alpha.c (tc_gen_reloc): Handle relocs against SEC_MERGE
[deliverable/binutils-gdb.git] / gas / config / tc-alpha.c
index ba42aaa8bcc610b56976be784541007c3ee5dd2b..65bc4f87ef58732c9639d478cebc9e272bbf9f59 100644 (file)
@@ -1591,7 +1591,8 @@ tc_gen_reloc (sec, fixp)
        * at assembly time.  bfd_perform_reloc doesn't know about this sort
        * of thing, and as a result we need to fake it out here.
        */
-      if ((S_IS_EXTERN (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy))
+      if ((S_IS_EXTERN (fixp->fx_addsy) || S_IS_WEAK (fixp->fx_addsy)
+          || (S_GET_SEGMENT (fixp->fx_addsy)->flags & SEC_MERGE))
          && !S_IS_COMMON (fixp->fx_addsy))
        reloc->addend -= symbol_get_bfdsym (fixp->fx_addsy)->value;
 #endif
This page took 0.022918 seconds and 4 git commands to generate.