projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
catch out of range string offset in corrupt stab entry
[binutils-gdb.git]
/
bfd
/
elf32-sparc.c
diff --git
a/bfd/elf32-sparc.c
b/bfd/elf32-sparc.c
index f39fc1b5ec4dafe953b32acb8237f693674e6873..e61a82fabeb5cc8a0134068635ecb107e86afd8b 100644
(file)
--- a/
bfd/elf32-sparc.c
+++ b/
bfd/elf32-sparc.c
@@
-1219,7
+1219,8
@@
elf32_sparc_relocate_section (output_bfd, info, input_bfd, input_section,
{
if (! ((*info->callbacks->undefined_symbol)
(info, h->root.root.string, input_bfd,
- input_section, rel->r_offset)))
+ input_section, rel->r_offset,
+ (!info->shared || info->no_undefined))))
return false;
relocation = 0;
}