This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: irix bootstrap dies in builtins.c


On Tue, 3 Apr 2001, Richard Henderson wrote:

> On Tue, Apr 03, 2001 at 12:25:55AM -0700, Zack Weinberg wrote:
> > Couldn't you just put rth's small test case from
> > http://sources.redhat.com/ml/binutils/2001-03/msg00095.html 
> > into conftest.s?  Then all the buggy assemblers would crash.
> 
> Because that test case requires x86 elf.  It doesn't properly
> check a.out, or coff, or m68k, or ...
> 
> I have no idea how to rewrite it properly.

This should do the trick

$ cat uleb.s 
        .section .data
        .uleb128 .L2-.L1
        .section .text.foo
.L1:
        .org .L1+2
.L2:
$ as uleb.s 
Segmentation fault (core dumped)
$ gas/gas/as-new uleb.s 
$ gas/gas/as-new -al uleb.s 
GAS LISTING uleb.s                      page 1


   1                            .section .data
   2 0000 02                    .uleb128 .L2-.L1
   3 0001 000000                .section .text.foo
   4                    .L1:
   5 0000 0000                  .org .L1+2
   6                    .L2:

Alan
-- 
Linuxcare


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]