OSDN Git Service

* syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
authoramodra <amodra>
Wed, 1 May 2002 07:36:38 +0000 (07:36 +0000)
committeramodra <amodra>
Wed, 1 May 2002 07:36:38 +0000 (07:36 +0000)
file_name.

bfd/ChangeLog
bfd/syms.c

index 0e493df..d2fcd67 100644 (file)
@@ -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
index 4309c0d..01f7eee 100644 (file)
@@ -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
     {