What's difference between tc_fix_adjustable and TC_FIX_ADJUSTABLE?

Alan Modra amodra@bigpond.net.au
Thu Nov 28 23:29:00 GMT 2002


On Fri, Nov 29, 2002 at 02:40:39PM +0800, Jie Zhang wrote:
> I find both are used in gas/write.c.

Not in current mainline CVS.

>From gas/doc/internals.texi

@item tc_fix_adjustable
@cindex tc_fix_adjustable
You may define this macro to indicate whether a fixup against a locally defined
symbol should be adjusted to be against the section symbol.  It should return a
non-zero value if the adjustment is acceptable.

The old TC_FIX_ADJUSTABLE has been renamed to MD_APPLY_SYM_VALUE.

@item MD_APPLY_SYM_VALUE (@var{fix})
@cindex MD_APPLY_SYM_VALUE
This macro controls whether the symbol value becomes part of the value passed
to @code{md_apply_fix3}.  If the macro is undefined, or returns non-zero, the
symbol value will be included.  For ELF, a suitable definition might simply be
@code{0}, because ELF relocations don't include the symbol value in the addend.


-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list