X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Felf32-arc.c;h=3d39c3a1352b0789d03dd7baa156a85a95f6bf77;hb=64f52338e924cce3a205527136e145da660a4686;hp=68f714a9d7126a560be4595801bdc7cc6fce906e;hpb=50e03d47b77d5730f96f6b6bb66187654e66c797;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 68f714a9d7..3d39c3a135 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -601,6 +601,7 @@ arc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) { if (mach_ibfd != mach_obfd) { + /* xgettext:c-format */ _bfd_error_handler (_("ERROR: Attempting to link %B " "with a binary %s of different architecture"), ibfd, bfd_get_filename (obfd)); @@ -610,6 +611,7 @@ arc_elf_merge_private_bfd_data (bfd *ibfd, struct bfd_link_info *info) { /* Warn if different flags. */ _bfd_error_handler + /* xgettext:c-format */ (_("%s: uses different e_flags (0x%lx) fields than " "previous modules (0x%lx)"), bfd_get_filename (ibfd), (long)in_flags, (long)out_flags); @@ -804,6 +806,7 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data, { if (reloc_data.reloc_addend == 0) _bfd_error_handler + /* xgettext:c-format */ (_("%B(%A+0x%lx): CMEM relocation to `%s' is invalid, " "16 MSB should be 0x%04x (value is 0x%lx)"), reloc_data.input_section->owner, @@ -814,6 +817,7 @@ arc_special_overflow_checks (const struct arc_relocation_data reloc_data, (relocation)); else _bfd_error_handler + /* xgettext:c-format */ (_("%B(%A+0x%lx): CMEM relocation to `%s+0x%lx' is invalid, " "16 MSB should be 0x%04x (value is 0x%lx)"), reloc_data.input_section->owner, @@ -1526,22 +1530,27 @@ elf_arc_relocate_section (bfd * output_bfd, break; case bfd_reloc_other: + /* xgettext:c-format */ msg = _("%B(%A): warning: unaligned access to symbol '%s' in the small data area"); break; case bfd_reloc_outofrange: + /* xgettext:c-format */ msg = _("%B(%A): internal error: out of range error"); break; case bfd_reloc_notsupported: + /* xgettext:c-format */ msg = _("%B(%A): internal error: unsupported relocation error"); break; case bfd_reloc_dangerous: + /* xgettext:c-format */ msg = _("%B(%A): internal error: dangerous relocation"); break; default: + /* xgettext:c-format */ msg = _("%B(%A): internal error: unknown error"); break; } @@ -1724,6 +1733,7 @@ elf_arc_check_relocs (bfd * abfd, /* bfd_elf_sym_name (abfd, symtab_hdr, isym, NULL); */ name = "UNKNOWN"; _bfd_error_handler + /* xgettext:c-format */ (_("\ %B: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"), abfd, @@ -2230,7 +2240,6 @@ elf_arc_finish_dynamic_sections (bfd * output_bfd, GET_SYMBOL_OR_SECTION (DT_PLTGOT, NULL, ".plt") GET_SYMBOL_OR_SECTION (DT_JMPREL, NULL, ".rela.plt") GET_SYMBOL_OR_SECTION (DT_PLTRELSZ, NULL, ".rela.plt") - GET_SYMBOL_OR_SECTION (DT_RELASZ, NULL, ".rela.plt") GET_SYMBOL_OR_SECTION (DT_VERSYM, NULL, ".gnu.version") GET_SYMBOL_OR_SECTION (DT_VERDEF, NULL, ".gnu.version_d") GET_SYMBOL_OR_SECTION (DT_VERNEED, NULL, ".gnu.version_r") @@ -2280,12 +2289,6 @@ elf_arc_finish_dynamic_sections (bfd * output_bfd, do_it = TRUE; break; - case DT_RELASZ: - if (s != NULL) - internal_dyn.d_un.d_val -= s->size; - do_it = TRUE; - break; - default: break; } @@ -2618,6 +2621,7 @@ elf32_arc_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) #define elf_backend_rela_plts_and_copies_p 1 #define elf_backend_want_plt_sym 0 #define elf_backend_got_header_size 12 +#define elf_backend_dtrel_excludes_plt 1 #define elf_backend_may_use_rel_p 0 #define elf_backend_may_use_rela_p 1