[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/2342] linkonce debug is broken
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/2342] linkonce debug is broken |
Date: |
15 Feb 2006 22:19:54 -0000 |
------- Additional Comments From hjl at lucon dot org 2006-02-15 22:19 -------
Created an attachment (id=868)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=868&action=view)
A testcase
The old linker:
address@hidden xx]$ make
g++ -g -c -o test01a.o test01a.cpp
g++ -g -c -o test01b.o test01b.cpp
g++ -g -c -o test01c.o test01c.cpp
ld -r -o test.o test01a.o test01b.o test01c.o
g++ -g -o test test.o
gdb -batch -x gdb.cmd test > gdb.log
Function "internal_error" not defined.
Function "info_command" not defined.
.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
echo $bp2 | grep 0x0:; \
if [ $? = 0 ]; then exit 1; else true; fi
address@hidden xx]$
The new linker:
address@hidden xx]$ make LD=../ld
g++ -g -c -o test01a.o test01a.cpp
g++ -g -c -o test01b.o test01b.cpp
g++ -g -c -o test01c.o test01c.cpp
../ld -r -o test.o test01a.o test01b.o test01c.o
g++ -g -o test test.o
gdb -batch -x gdb.cmd test > gdb.log
Function "internal_error" not defined.
Function "info_command" not defined.
.gdbinit:8: Error in sourced command file:
No breakpoint number 0.
bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
echo $bp2 | grep 0x0:; \
if [ $? = 0 ]; then exit 1; else true; fi
Breakpoint 2 at 0x0: file test01a.h, line 4.
make: *** [all] Error 1
address@hidden xx]$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2342
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/2342] New: linkonce debug is broken, hjl at lucon dot org, 2006/02/15
- [Bug ld/2342] linkonce debug is broken,
hjl at lucon dot org <=
- [Bug ld/2342] linkonce debug is broken, amodra at bigpond dot net dot au, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, hjl at lucon dot org, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, amodra at bigpond dot net dot au, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, amodra at bigpond dot net dot au, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, hjl at lucon dot org, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, amodra at bigpond dot net dot au, 2006/02/15
- [Bug ld/2342] linkonce debug is broken, hjl at lucon dot org, 2006/02/16