aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-v850.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-10-16 04:18:51 +0000
committerJeff Law <law@redhat.com>1996-10-16 04:18:51 +0000
commit05f1baaa20dc6b0b62dbd414277e62556bc54cde (patch)
tree5ed79f045eb3b6dc441dc9e4ab521b459c5da0c5 /bfd/elf32-v850.c
parent9bf9a31876ce1c8d77269cf76b1bb5062bbc6ee5 (diff)
downloadgdb-05f1baaa20dc6b0b62dbd414277e62556bc54cde.zip
gdb-05f1baaa20dc6b0b62dbd414277e62556bc54cde.tar.gz
gdb-05f1baaa20dc6b0b62dbd414277e62556bc54cde.tar.bz2
* elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
accept a reloc against an undefined sybmol! jeez. I'm going to go sit in the corner and hide.
Diffstat (limited to 'bfd/elf32-v850.c')
-rw-r--r--bfd/elf32-v850.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 626a21d..b2dfbc3 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -264,6 +264,12 @@ bfd_elf32_v850_reloc (abfd, reloc, symbol, data, isection, obfd, err)
return bfd_reloc_continue;
}
+ /* Catch relocs involving undefined symbols. */
+ if (bfd_is_und_section (symbol->section)
+ && (symbol->flags & BSF_WEAK) == 0
+ && obfd == NULL)
+ return bfd_reloc_undefined;
+
/* We handle final linking of some relocs ourselves. */
{
long relocation, insn;