aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-03-08 11:38:58 +0000
committerAlan Modra <amodra@gmail.com>2007-03-08 11:38:58 +0000
commit3dd2d30bfaf9d4755d4d9e9fe60645989c0d4dfa (patch)
tree403d67605cddc1509b094985d8d43cbffa12f1c5 /bfd
parentd4c87fc14d74d58db4902893c0e717ea9deffaef (diff)
downloadgdb-3dd2d30bfaf9d4755d4d9e9fe60645989c0d4dfa.zip
gdb-3dd2d30bfaf9d4755d4d9e9fe60645989c0d4dfa.tar.gz
gdb-3dd2d30bfaf9d4755d4d9e9fe60645989c0d4dfa.tar.bz2
duh. commit correct version of patch.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-v850.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c
index 0b77482..6bb5795 100644
--- a/bfd/elf32-v850.c
+++ b/bfd/elf32-v850.c
@@ -2083,7 +2083,7 @@ v850_elf_link_output_symbol_hook (struct bfd_link_info *info ATTRIBUTE_UNUSED,
const char *name ATTRIBUTE_UNUSED,
Elf_Internal_Sym *sym,
asection *input_sec,
- struct elf_link_hash_entry *h)
+ struct elf_link_hash_entry *h ATTRIBUTE_UNUSED)
{
/* If we see a common symbol, which implies a relocatable link, then
if a symbol was in a special common section in an input file, mark
@@ -2101,10 +2101,9 @@ v850_elf_link_output_symbol_hook (struct bfd_link_info *info ATTRIBUTE_UNUSED,
/* The price we pay for using h->other unused bits as flags in the
linker is cleaning up after ourselves. */
-
- if (h != NULL)
- h->other &= ~(V850_OTHER_SDA | V850_OTHER_ZDA | V850_OTHER_TDA
- | V850_OTHER_ERROR);
+
+ sym->st_other &= ~(V850_OTHER_SDA | V850_OTHER_ZDA | V850_OTHER_TDA
+ | V850_OTHER_ERROR);
return TRUE;
}