[PATCH] Further improved native as support on Solaris/x86

Mark Mitchell mark@codesourcery.com
Fri Jul 21 20:19:00 GMT 2006


Roger Sayle wrote:
> The following patch is the next installment of support for the native
> /usr/ccs/bin/as assembler on Solaris/x86.  The issue is that SUN's as
> complains about taking the difference of labels that appear in different
> sections.  Unfortunately, because gas (incorrectly?) allows this
> functionality, many parts of GCC (such as the dwarf writers) now make
> use of this functionality.

How distressing.  Would you please say more?  That sounds like it coule
be a serious bug, in which case I'd rather we go after that than try to
work around this just for the Solaris native assembler.  On the other
hand, perhaps GNU as is smart enough to create relocations in this case,
in which case something like your patch might be best -- though it still
sounds like we might need a more general
AS_ALLOWS_SUBTRACTION_OF_LABELS_IN_DIFFERENT_SECTIONS macro, or some such.

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list