This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 10/13] [NDS32] Update and support more target features for the nds32 port


Hi, binutils maintainers and developers,

Attached is the modified patch for resolving the build errors:
bfd/elf32-nds32.c: In function 'nds32_elf_relax_section':
bfd/elf32-nds32.c:12241:37: error: bitwise comparison always evaluates
to false [-Werror=tautological-compare]
       || (sec->flags & SEC_EXCLUDE) == 1
                                     ^~
  and:

bfd/elf32-nds32.c: In function 'nds32_elf_relocate_section':
bfd/elf32-nds32.c:5271:11: error: this statement may fall through
[-Werror=implicit-fallthrough=]
        if (strcmp (elf_sym_hashes (input_bfd)[symndx]->root.root.string,
           ^
bfd/elf32-nds32.c:5283:6: note: here
      case R_NDS32_SDA19S0_RELA:
      ^~~~

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

bfd/
        * elf32-nds32.c (NDS32_GUARD_SEC_P, elf32_nds32_local_gp_offset):
        New macro.
        (struct elf_nds32_link_hash_entry): New `offset_to_gp' field.
        (struct elf_nds32_obj_tdata): New `offset_to_gp' and `hdr_size' fields.
        (elf32_nds32_allocate_local_sym_info, nds32_elf_relax_guard,
        nds32_elf_is_target_special_symbol, nds32_elf_maybe_function_sym):
        New functions.
        (nds32_info_to_howto_rel): Add BFD_ASSERT.
        (bfd_elf32_bfd_reloc_type_table_lookup, nds32_elf_link_hash_newfunc,
        nds32_elf_link_hash_table_create, nds32_elf_relocate_section,
        nds32_elf_relax_loadstore, nds32_elf_relax_lo12,
nds32_relax_adjust_label,
        bfd_elf32_nds32_set_target_option, nds32_fag_mark_relax): Updated.
        (nds32_elf_final_sda_base): Improve it to find the better gp value.
        (insert_nds32_elf_blank): Must consider `len' when inserting blanks.
        * elf32-nds32.h (bfd_elf32_nds32_set_target_option): Update prototype.
        (struct elf_nds32_link_hash_table): Add new variable `hyper_relax'.

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

        * emultempl/nds32elf.em (hyper_relax): New variable.
        (nds32_elf_create_output_section_statements):
        the parameters of bfd_elf32_nds32_set_target_option
        (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_OPTIONS,
        PARSE_AND_LIST_ARGS_CASES): Add new option --mhyper-relax.

Best regards,
Nelson Ching-Yu Chu
Software R&D, Andes Technology
Nelson Chu <nelson.chu1990@gmail.com> 於 2018年9月17日 週一 上午10:04寫道:
>
> Hi, binutils maintainers and developers,
>
> Attached is the tenth patch,
> 0010-NDS32-Update-the-gp-related-relaxations
>
> Best regards,
> Nelson Ching-Yu Chu
> Software R&D, Andes Technology

Attachment: 0010-NDS32-Update-the-gp-related-relaxations.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]