This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH]: gold sparc unaligned...
From: Eric Botcazou <ebotcazou@adacore.com>
Date: Tue, 9 Feb 2010 18:55:46 +0100
> Looks overkill too. :-) There is at the end of config/tc-sparc.c:
>
> void
> sparc_cfi_emit_pcrel_expr (expressionS *exp, unsigned int nbytes)
> {
> sparc_cons_special_reloc = "disp";
> sparc_no_align_cons = 1;
> emit_expr (exp, nbytes);
> sparc_no_align_cons = 0;
> sparc_cons_special_reloc = NULL;
> }
>
> so why doesn't gas generate the SPARC_UA* variants directly?
That special hook is only invoked by the dwarf2 CFI emitter
for pcrel cases. It isn't going to be used for the expressions
generated by .cfi_personality