projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb7359
)
* elfcode.h (section_from_elf_index): Correct check for invalid
author
Ian Lance Taylor
<ian@airs.com>
Fri, 12 Aug 1994 23:25:23 +0000
(23:25 +0000)
committer
Ian Lance Taylor
<ian@airs.com>
Fri, 12 Aug 1994 23:25:23 +0000
(23:25 +0000)
section index.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elfcode.h
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 88c1a024d734334d1b5ac8777b91fa06e61c838c..3f1d2ca1d797ba0920d08b0da694e98d7c2f6197 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,5
+1,8
@@
Fri Aug 12 11:22:40 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+ * elfcode.h (section_from_elf_index): Correct check for invalid
+ section index.
+
* elfcode.h (elf_link_add_object_symbols): If there is no symbol
table, try using the dynamic symbol table. From Eric Youngdale
<ericy@cais.cais.com>.
diff --git
a/bfd/elfcode.h
b/bfd/elfcode.h
index 4cad55d40a400ea555f6d37e952d4e2e5c5c8dd5..f6e14fa68ebf9d1b6ecff3b81d951a31bda90362 100644
(file)
--- a/
bfd/elfcode.h
+++ b/
bfd/elfcode.h
@@
-2524,7
+2524,7
@@
section_from_elf_index (abfd, index)
if (index == SHN_COMMON)
return bfd_com_section_ptr;
- if (index > elf_elfheader (abfd)->e_shnum)
+ if (index >
=
elf_elfheader (abfd)->e_shnum)
return NULL;
{