binutils problem

Richard Zidlicky rz@linux-m68k.org
Sun Aug 25 00:58:00 GMT 2002


On Sat, Aug 24, 2002 at 06:31:56PM +0200, Andreas Schwab wrote:
 
> 2002-08-24  Andreas Schwab  <schwab@suse.de>
> 
> 	* config/tc-m68k.c (tc_m68k_fix_adjustable): Don't adjust symbols
> 	in merge sections.
> 
> Index: gas/config/tc-m68k.c
> ===================================================================
> RCS file: /cvs/src/src/gas/config/tc-m68k.c,v
> retrieving revision 1.40
> diff -u -p -a -u -p -a -r1.40 gas/config/tc-m68k.c
> --- gas/config/tc-m68k.c	20 Aug 2002 23:49:27 -0000	1.40
> +++ gas/config/tc-m68k.c	24 Aug 2002 16:28:21 -0000
> @@ -848,6 +848,10 @@ tc_m68k_fix_adjustable (fixP)
>    if (! relaxable_symbol (fixP->fx_addsy))
>      return 0;
>  
> +  /* Don't adjust symbols in merge sections.  */
> +  if ((S_GET_SEGMENT (fixP->fx_addsy)->flags & SEC_MERGE) != 0)
> +    return 0;
> +
>    /* adjust_reloc_syms doesn't know about the GOT */
>    switch (fixP->fx_r_type)
>      {
> 

Thanks, works fine for the xcompiler. Doesn't appear to work native but
I have to bootstrap gcc and binutils yet again so this might change.

Richard



More information about the Binutils mailing list