summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authortschwinge <tschwinge>2012-04-19 09:50:22 +0000
committertschwinge <tschwinge>2012-04-19 09:50:22 +0000
commit9709d4843d2f4cf02383f31fb2e31fc44304e3b6 (patch)
tree0062364bcadc8b56e4f0c9c31d059764c0f0e473 /bfd
parent20912cfa78063fbcbc32ba706cb78878a56a12a0 (diff)
downloadgdb-9709d4843d2f4cf02383f31fb2e31fc44304e3b6.tar.gz
bfd/
* elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for got_type. (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use it.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-sh.c8
2 files changed, 11 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dacde6d5fc4..93cc9ebb1c7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2012-04-19 Thomas Schwinge <thomas@codesourcery.com>
+
+ * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
+ got_type.
+ (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
+ it.
+
2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 87d4e4fcbc5..abe837d1937 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -2406,7 +2406,7 @@ struct elf_sh_link_hash_entry
and thus require fixups or relocations. */
bfd_signed_vma abs_funcdesc_refcount;
- enum {
+ enum got_type {
GOT_UNKNOWN = 0, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE, GOT_FUNCDESC
} got_type;
};
@@ -3078,7 +3078,7 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf)
{
asection *s;
bfd_boolean dyn;
- int got_type = sh_elf_hash_entry (h)->got_type;
+ enum got_type got_type = sh_elf_hash_entry (h)->got_type;
/* Make sure this symbol is output as a dynamic symbol.
Undefined weak syms won't yet be marked as dynamic. */
@@ -3980,7 +3980,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
bfd_reloc_status_type r;
int seen_stt_datalabel = 0;
bfd_vma off;
- int got_type;
+ enum got_type got_type;
const char *symname = NULL;
r_symndx = ELF32_R_SYM (rel->r_info);
@@ -6093,7 +6093,7 @@ sh_elf_check_relocs (bfd *abfd, struct bfd_link_info *info, asection *sec,
const Elf_Internal_Rela *rel_end;
asection *sreloc;
unsigned int r_type;
- int got_type, old_got_type;
+ enum got_type got_type, old_got_type;
sreloc = NULL;