[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/10259] New: ld generates bad long branch stubs
From: |
danglin at gcc dot gnu dot org |
Subject: |
[Bug ld/10259] New: ld generates bad long branch stubs |
Date: |
10 Jun 2009 20:09:37 -0000 |
The following change to binutils breaks GCC bootstrap in stage1:
2009-05-22 Julian Brown <address@hidden>
* elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
macros.
This is the error reported in my build log:
...
checking for armv5tejl-unknown-linux-gnueabi-
gcc... /home/dave/gnu/gcc/objdir/./gcc/xgcc -
B/home/dave/gnu/gcc/objdir/./gcc/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-
unknown-linux-gnueabi/bin/ -B/home/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-
unknown-linux-gnueabi/lib/ -isystem /home/dave/opt/gnu/gcc/gcc-4.5.0/armv5tejl-
unknown-linux-gnueabi/include -isystem /home/dave/opt/gnu/gcc/gcc-
4.5.0/armv5tejl-unknown-linux-gnueabi/sys-include
checking for suffix of object files... configure: error: in
`/home/dave/gnu/gcc/objdir/armv5tejl-unknown-linux-gnueabi/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
With the trivial program,
int
main ()
{
return 0;
}
cc1 generates a SEGV here:
(gdb) r
Starting program: /home/dave/gnu/gcc/objdir/gcc/cc1 -
iprefix /home/dave/gnu/gcc/objdir/gcc/../lib/gcc/armv5tejl-unknown-linux-
gnueabi/4.5.0/ -isystem ./include -isystem ./include-fixed xxx.c -dumpbase
xxx.c -auxbase xxx -version -o xxx.s
Program received signal SIGSEGV, Segmentation fault.
0x051e9414 in ?? ()
(gdb) bt
#0 0x051e9414 in ?? ()
#1 0x0275d358 in __libc_csu_init ()
#2 0x400df8cc in __libc_start_main () from /lib/libc.so.6
#3 0x00068758 in _start ()
(gdb) disass 0x0275d348 0x0275d368
Dump of assembler code from 0x275d348 to 0x275d368:
0x0275d348 <__libc_csu_init+16>: mov r10, r0
0x0275d34c <__libc_csu_init+20>: mov r8, r1
0x0275d350 <__libc_csu_init+24>: mov r7, r2
0x0275d354 <__libc_csu_init+28>: bl 0x275d528 <___init_veneer>
0x0275d358 <__libc_csu_init+32>: ldr r3, [pc, #64] ; 0x275d3a0
<__libc_csu_init+104>
0x0275d35c <__libc_csu_init+36>: ldr r2, [pc, #64] ; 0x275d3a4
<__libc_csu_init+108>
0x0275d360 <__libc_csu_init+40>: rsb r3, r2, r3
0x0275d364 <__libc_csu_init+44>: asrs r5, r3, #2
End of assembler dump.
Starting program: /home/dave/gnu/gcc/objdir/gcc/cc1 -
iprefix /home/dave/gnu/gcc/objdir/gcc/../lib/gcc/armv5tejl-unknown-linux-
gnueabi/4.5.0/ -isystem ./include -isystem ./include-fixed xxx.c -dumpbase
xxx.c -auxbase xxx -version -o xxx.s
Breakpoint 5, 0x0275d354 in __libc_csu_init ()
(gdb) stepi
0x0275d528 in ___init_veneer ()
(gdb) disass
Dump of assembler code for function ___init_veneer:
0x0275d528 <___init_veneer+0>: ldr pc, [pc, #-4] ; 0x275d52c
<___init_veneer+4>
0x0275d52c <___init_veneer+4>: ldreq r9, [lr, #-1044]
End of assembler dump.
(gdb) stepi
0x0275d528 in ___init_veneer ()
Could not insert single-step breakpoint at 0x51e9414
--
Summary: ld generates bad long branch stubs
Product: binutils
Version: 2.20 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: danglin at gcc dot gnu dot org
CC: bug-binutils at gnu dot org,julian at codesourcery dot
com
GCC build triplet: armv5tejl-unknown-linux-gnueabi
GCC host triplet: armv5tejl-unknown-linux-gnueabi
GCC target triplet: armv5tejl-unknown-linux-gnueabi
http://sourceware.org/bugzilla/show_bug.cgi?id=10259
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/10259] New: ld generates bad long branch stubs,
danglin at gcc dot gnu dot org <=