------- 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: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] xx]$ The new linker: [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils