* xcoffread.c (process_linenos): The value in include file symbol
should point to line number table. Currently this value is not set correctly by AIX ld. A fix to get around this bug.
This commit is contained in:
parent
9c92373a6c
commit
fc564b1858
|
@ -606,6 +606,7 @@ process_linenos (start, end)
|
||||||
enter_line_range (tmpSubfile, inclTable[ii].begin,
|
enter_line_range (tmpSubfile, inclTable[ii].begin,
|
||||||
inclTable[ii].end, start, 0, firstLine);
|
inclTable[ii].end, start, 0, firstLine);
|
||||||
|
|
||||||
|
if (offset < = inclTable[ii].end)
|
||||||
offset = inclTable[ii].end + LINESZ;
|
offset = inclTable[ii].end + LINESZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3033,7 +3034,7 @@ xcoff_symfile_offsets (objfile, addr)
|
||||||
parameter and use 0. rs6000-nat.c will set the correct section
|
parameter and use 0. rs6000-nat.c will set the correct section
|
||||||
offsets via objfile_relocate. */
|
offsets via objfile_relocate. */
|
||||||
for (i = 0; i < objfile->num_sections; ++i)
|
for (i = 0; i < objfile->num_sections; ++i)
|
||||||
ANOFFSET (section_offsets, i) = 0;
|
ANOFFSET (section_offsets, i) = addr;
|
||||||
|
|
||||||
return section_offsets;
|
return section_offsets;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue