relocations in gas
Jean-Philippe Bernardy
jeanphilippe.bernardy@gmail.com
Fri Jan 21 13:28:00 GMT 2005
Hello,
Still on the calmrisc16 port, I encountered the problem that gas
adjusted fixups in a mergeable section. This results in incorrect
relocations when merge occurs at link time.
In found this fix:
in write.c, replace
if ((symsec->flags & SEC_MERGE) != 0
&& (fixp->fx_offset != 0 || fixp->fx_subsy != NULL))
continue;
by
if ((symsec->flags & SEC_MERGE) != 0
&& (fixp->fx_offset != 0 || fixp->fx_subsy != NULL ||
fixp->fx_addsy != NULL))
continue;
Effectively taking in account the 'add symbol'. Maybe there is a
better way to handle this?
Cheers,
JP.
More information about the Binutils
mailing list