From 19610da66e2da3f2314d8b0481cbceef4070d3ac Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sat, 1 Sep 2007 06:09:20 +0000 Subject: bfd/ 2007-08-31 H.J. Lu PR ld/4986 * dwarf2.c (new_line_sorts_after): Also compare line number. ld/testsuite/ 2007-08-31 H.J. Lu PR ld/4986 * ld-x86-64/line.exp: New * ld-x86-64/undefined.s: Likewise. --- bfd/dwarf2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/dwarf2.c') diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 37d68f9b9e6..7f5f3974a33 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -917,7 +917,8 @@ new_line_sorts_after (struct line_info *new_line, struct line_info *line) { return (new_line->address > line->address || (new_line->address == line->address - && new_line->end_sequence < line->end_sequence)); + && (new_line->line > line->line + || new_line->end_sequence < line->end_sequence))); } -- cgit v1.2.1