mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
gas and ld pluralization fixes
gas/ * as.c (main): Properly pluralize messages. * frags.c (frag_grow): Likewise. * read.c (emit_expr_with_reloc, emit_expr_fix): Likewise. (parse_bitfield_cons): Likewise. * write.c (fixup_segment, compress_debug, write_contents): Likewise. (relax_segment): Likewise. * config/tc-arm.c (s_arm_elf_cons): Likewise. * config/tc-cr16.c (l_cons): Likewise. * config/tc-i370.c (i370_elf_cons): Likewise. * config/tc-m68k.c (m68k_elf_cons): Likewise. * config/tc-msp430.c (msp430_operands): Likewise. * config/tc-s390.c (s390_elf_cons, s390_literals): Likewise. * config/tc-mcore.c (md_apply_fix): Likewise. * config/tc-tic54x.c (md_assemble): Likewise. * config/tc-xtensa.c (xtensa_elf_cons): Likewise. (xg_expand_assembly_insn): Likewise. * config/xtensa-relax.c (build_transition): Likewise. ld/ * ldlang.c (lang_size_sections_1): Properly pluralize messages. (lang_check_section_addresses): Likewise.
This commit is contained in:
16
ld/ldlang.c
16
ld/ldlang.c
@ -4929,8 +4929,13 @@ lang_check_section_addresses (void)
|
||||
a bfd_vma quantity in decimal. */
|
||||
for (m = lang_memory_region_list; m; m = m->next)
|
||||
if (m->had_full_message)
|
||||
einfo (_("%X%P: region `%s' overflowed by %ld bytes\n"),
|
||||
m->name_list.name, (long)(m->current - (m->origin + m->length)));
|
||||
{
|
||||
unsigned long over = m->current - (m->origin + m->length);
|
||||
einfo (ngettext ("%X%P: region `%s' overflowed by %lu byte\n",
|
||||
"%X%P: region `%s' overflowed by %lu bytes\n",
|
||||
over),
|
||||
m->name_list.name, over);
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure the new address is within the region. We explicitly permit the
|
||||
@ -5130,8 +5135,11 @@ lang_size_sections_1
|
||||
&& (config.warn_section_align
|
||||
|| os->addr_tree != NULL)
|
||||
&& expld.phase != lang_mark_phase_enum)
|
||||
einfo (_("%P: warning: changing start of section"
|
||||
" %s by %lu bytes\n"),
|
||||
einfo (ngettext ("%P: warning: changing start of "
|
||||
"section %s by %lu byte\n",
|
||||
"%P: warning: changing start of "
|
||||
"section %s by %lu bytes\n",
|
||||
(unsigned long) dotdelta),
|
||||
os->name, (unsigned long) dotdelta);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user