bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

binutils-2.15 as --target=sh-elf trivially broken


From: tm_gccmail
Subject: binutils-2.15 as --target=sh-elf trivially broken
Date: Thu, 29 Jul 2004 21:03:42 -0700 (PDT)

It looks like binutils-2.15 is trivially broken for target sh-elf.
When I try to build gcc --target=sh-elf with as from binutils-2.15, here's
what happens:

address@hidden gcc]$ sh-elf-as --version
GNU assembler 2.15
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sh-elf'.
address@hidden gcc]$ sh-elf-as unwind-dw2.s
unwind-dw2.s: Assembler messages:
unwind-dw2.s:4732: Error: attempt to move .org backwards
address@hidden gcc]$

The assembler from binutils-2.14 doesn't seem to have this problem:

address@hidden gcc]$ sh-elf-as --version
GNU assembler 2.14 20030612
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sh-elf'.
address@hidden gcc]$ sh-elf-as unwind-dw2.s
address@hidden gcc]$

The file unwind-dw2.s is attached.

It looks like relaxation is being called, and it's moving stuff around
which causes the error to be issued:

(gdb) bt
#0  as_bad_where (file=0xbffffc7b "unwind-dw2.s", line=4732,
    format=0x80c7ee0 "attempt to move .org backwards") at
../../binutils-2.15/gas/messages.c:368
#1  0x8062893 in relax_segment (segment_frag_root=0x81248d0,
segment=0x8121d08)
    at ../../binutils-2.15/gas/write.c:2404
#2  0x8061320 in relax_seg (abfd=0x8105660, sec=0x8121d08, xxx=0xbffffad4)
    at ../../binutils-2.15/gas/write.c:631
#3  0x806f43b in bfd_map_over_sections (abfd=0x8105660,
operation=0x80612f8 <relax_seg>,
    user_storage=0xbffffad4) at ../../binutils-2.15/bfd/section.c:1085
#4  0x8062079 in write_object_file () at
../../binutils-2.15/gas/write.c:1529
#5  0x804bd68 in main (argc=2, argv=0x8105848) at
../../binutils-2.15/gas/as.c:1129
#6  0x4003ab65 in __libc_start_main (main=0x804bb50 <main>, argc=2,
ubp_av=0xbffffb64,
    init=0x80491f4 <_init>, fini=0x80c11cc <_fini>, rtld_fini=0x4000df24
<_dl_fini>,
    stack_end=0xbffffb5c) at ../sysdeps/generic/libc-start.c:111
(gdb)

Toshi

Attachment: unwind-dw2.s
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]