Problem with _bfd_elf_find_nearest_line on ia64
H . J . Lu
hjl@valinux.com
Sun Feb 4 19:54:00 GMT 2001
On Sun, Feb 04, 2001 at 06:40:30PM -0800, H . J . Lu wrote:
> I got quite a few failures on ia64:
>
> Running /work/gnu/src/binutils/ld/testsuite/ld-undefined/undefined.exp ...
> FAIL: undefined function
>
This problem is caused by _bfd_elf_find_nearest_line in bfd/elf.c. It
calls
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
filename_ptr, functionname_ptr,
line_ptr, 0,
&elf_tdata (abfd)->dwarf2_find_line_info))
If you pass 0 as addr_size to _bfd_dwarf2_find_nearest_line, it will
use the default addr_size, which is 4. It seems incorrect for ia64.
Setting addr_size to 8 fixes the problem. Could someone please fix
it?
Thanks.
--
H.J. Lu (hjl@valinux.com)
More information about the Binutils
mailing list