projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40eccb
)
Prevent NULL pointer dereference.
author
Alan Modra
<amodra@gmail.com>
Wed, 21 Mar 2001 08:09:25 +0000
(08:09 +0000)
committer
Alan Modra
<amodra@gmail.com>
Wed, 21 Mar 2001 08:09:25 +0000
(08:09 +0000)
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf32-hppa.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 4a306d1aaa7075e9db6b21a97beb71a3b7a983cb..5e14bf712a407a1104667c2100c9e413c1af945c 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+2001-03-21 Alan Modra <alan@linuxcare.com.au>
+
+ * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
+ non-NULL before attempting to dereference.
+
2001-03-20 H.J. Lu <hjl@gnu.org>
* configure.in: Remove the redundent AC_ARG_PROGRAM.
diff --git
a/bfd/elf32-hppa.c
b/bfd/elf32-hppa.c
index c7f60a7dd7ee2d9e5ce0e877f2295b9c82b20128..06b60200dcd674f60549601407880013bb0cee7f 100644
(file)
--- a/
bfd/elf32-hppa.c
+++ b/
bfd/elf32-hppa.c
@@
-3089,7
+3089,7
@@
elf32_hppa_set_gp (abfd, info)
}
}
- if (sec != NULL)
+ if (sec != NULL
&& sec->output_section != NULL
)
gp_val += sec->output_section->vma + sec->output_offset;
elf_gp (abfd) = gp_val;