+2010-09-09 Gunther Nikl <gnikl@users.sourceforge.net>
+
+ * gas/config/tc-m68k.c (tc_gen_reloc): Handle references to defined
+ weak symbols first if generating an a.out object.
+
2010-09-09 Tejas Belagod <tejas.belagod@arm.com>
* config/tc-arm.c (md_apply_fix): Check if widened add, sub are
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
#ifndef OBJ_ELF
- if (fixp->fx_pcrel)
- reloc->addend = fixp->fx_addnumber;
- else if (OUTPUT_FLAVOR == bfd_target_aout_flavour
- && fixp->fx_addsy
- && S_IS_WEAK (fixp->fx_addsy)
- && ! bfd_is_und_section (S_GET_SEGMENT (fixp->fx_addsy)))
+ if (OUTPUT_FLAVOR == bfd_target_aout_flavour
+ && fixp->fx_addsy
+ && S_IS_WEAK (fixp->fx_addsy)
+ && ! bfd_is_und_section (S_GET_SEGMENT (fixp->fx_addsy)))
{
/* PR gas/3041 References to weak symbols must be treated as extern
in order to be overridable by the linker, even if they are defined
- (S_GET_VALUE (fixp->fx_addsy)
+ S_GET_SEGMENT (fixp->fx_addsy)->vma);
}
+ else if (fixp->fx_pcrel)
+ reloc->addend = fixp->fx_addnumber;
else
reloc->addend = 0;
#else