diff options
author | Alan Modra <amodra@bigpond.net.au> | 2002-05-01 07:36:39 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2002-05-01 07:36:39 +0000 |
commit | 57ba746cfb0a2abd776b904330d5593b61cdecde (patch) | |
tree | 58cbef07f489ae2de72ccc5bccd7c61cc5414beb /bfd | |
parent | 549abbcf6b78c043a96c7affa73dd1879bdafdfb (diff) | |
download | gdb-57ba746cfb0a2abd776b904330d5593b61cdecde.tar.gz |
* syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
file_name.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/syms.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0e493dfe0a9..d2fcd67398a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2002-05-01 Alan Modra <amodra@bigpond.net.au> + * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL + file_name. + +2002-05-01 Alan Modra <amodra@bigpond.net.au> + * elf64-ppc.c (CROR_151515, CROR_313131): Define. (ppc64_elf_relocate_section): Use them. Don't look for plt calls on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt diff --git a/bfd/syms.c b/bfd/syms.c index 4309c0d94f8..01f7eee2cce 100644 --- a/bfd/syms.c +++ b/bfd/syms.c @@ -1297,7 +1297,8 @@ _bfd_stab_section_find_nearest_line (abfd, symbols, section, offset, pfound, *pfound = true; - if (IS_ABSOLUTE_PATH(file_name) || directory_name == NULL) + if (file_name == NULL || IS_ABSOLUTE_PATH (file_name) + || directory_name == NULL) *pfilename = file_name; else { |