Discussion:
[PATCH 7/13] [NDS32] Update and support more target features for the nds32 port
Nelson Chu
2018-09-17 02:01:39 UTC
Permalink
Hi, binutils maintainers and developers,

Attached is the seventh patch,
0007-NDS32-Update-assemble-time-relaxations-pesudo-and-lo

Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology
Nelson Chu
2018-09-19 09:39:06 UTC
Permalink
Hi, binutils maintainers and developers,

Attached is the modified patch.

* gas/ChangeLog
2018-09-19 Nelson Chu <***@1990gmail.com>

* config/tc-nds32.c (struct nds32_relocs_pattern): Add `insn' field.
(struct nds32_hint_map): Add `option_list' field.
(struct suffix_name, suffix_table): Remove the unused `pic' field.
(do_pseudo_b, do_pseudo_bal): Remove the suffix checking.
(do_pseudo_la_internal, do_pseudo_pushpopm): Indent.
(relax_hint_bias, relax_hint_id_current): New static variables.
(reset_bias, relax_hint_begin): New variables.
(nds_itoa): New function.
(CLEAN_REG, GET_OPCODE): New macros.
(struct relax_hint_id): New.
(nds32_relax_hint): For .relax_hint directive, we can use `begin'
and `end' to mark the relax pattern without giving exactly id number.
(nds32_elf_append_relax_relocs): Handle the case that the .relax_hint
directives are attached to pseudo instruction.
(nds32_elf_save_pseudo_pattern): Change the second parameter from
instruction's opcode to byte code.
(nds32_elf_build_relax_relation): Add new bfd_boolean parameter
`pseudo_hint'.
(nds32_lookup_pseudo_opcode): Fix the overflow issue.
(enum nds32_insn_type): Add N32_RELAX_ALU1 and N32_RELAX_16BIT.
(nds32_elf_record_fixup_exp, relax_ls_table, hint_map,
nds32_find_reloc_table, nds32_match_hint_insn, nds32_parse_name):
Updated.
* config/tc-nds32.h (MAX_RELAX_NUM): Extend it to 6.
(enum nds32_relax_hint_type): Merge NDS32_RELAX_HINT_LA and
NDS32_RELAX_HINT_LS into NDS32_RELAX_HINT_LALS. Add
NDS32_RELAX_HINT_LA_PLT, NDS32_RELAX_HINT_LA_GOT and
NDS32_RELAX_HINT_LA_GOTOFF.

Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology
Post by Nelson Chu
Hi, binutils maintainers and developers,
Attached is the seventh patch,
0007-NDS32-Update-assemble-time-relaxations-pesudo-and-lo
Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology
Loading...