NDS32: Code refactoring of relaxation.
authorKuan-Lin Chen <kuanlinchentw@gmail.com>
Thu, 11 Sep 2014 06:25:05 +0000 (14:25 +0800)
committerKuan-Lin Chen <kuanlinchentw@gmail.com>
Tue, 16 Sep 2014 05:08:00 +0000 (13:08 +0800)
commit1c8f6a4d1fcca9e56ac705a224778bf690122a07
tree7ff41099c5a2f8b433f654b509a7c259899124e4
parent40c7a7cb74ee4a9ec0830d734198fcd0e99c3a37
NDS32: Code refactoring of relaxation.

Refactor each relaxation pattern to raise the maintainability.
In origin, all patterns is analysed in nds32_elf_relax_section,
so it is hard to debug and maintain.  Therefore, we classify all
patterns into different functions in this patch.
Moreover, we adjust all optimizations into nds32_elf_relax_section
to take these optimizations in turn.  This can promise all relaxation
being done after calling gld${EMULATION_NAME}_after_allocation.
13 files changed:
bfd/ChangeLog
bfd/bfd-in2.h
bfd/elf32-nds32.c
bfd/elf32-nds32.h
bfd/libbfd.h
bfd/reloc.c
gas/ChangeLog
gas/config/tc-nds32.c
gas/config/tc-nds32.h
include/elf/ChangeLog
include/elf/nds32.h
ld/ChangeLog
ld/emultempl/nds32elf.em