bfd/arc: Rename enum entries to avoid conflicts
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 6 Apr 2016 17:55:23 +0000 (18:55 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 14 Apr 2016 16:15:42 +0000 (17:15 +0100)
commit33cbe6c07ed7e66d65c106cffb496eff5d7e8fb5
treef87aa89d105e40ccaa5683fe23279e31ee9ba0e1
parentcb040366b36ca624874e036805ca1fca740dae9f
bfd/arc: Rename enum entries to avoid conflicts

In bfd/elf32-arc.c an enum is created that contains entries with generic
names like 'NONE' and 'OFF'.  This has been fine for now, but I had a
need to include opcode/arc.h into bfd/elf32-arc.c.  Unfortunately
opcode/arc.h includes a different enum with identical generic names.

Given that changing the enum in the header file could mean wide-ranging
changes, while changing the enum in the .c file is limited to only
changing the one file, I've added a prefix to the enum in the .c file.

This commit does not add the new include, that will come later.  There
should be no functional change with this commit.

bfd/ChangeLog:

* elf32-arc.c (tls_got_entries): Add 'TLS_GOT_' prefix to all
entries.
(elf_arc_relocate_section): Update enum uses.
(elf_arc_check_relocs): Likewise.
(elf_arc_finish_dynamic_symbol): Likewise.
bfd/ChangeLog
bfd/elf32-arc.c