[PATCH] Fix error message typo.

Palmer Dabbelt palmer@sifive.com
Sun Nov 19 20:27:00 GMT 2017


Thanks!

On Sat, 18 Nov 2017 17:04:44 PST (-0800), Jim Wilson wrote:
> Fixes a bug reported against the github riscv-gnu-toolchain.  The riscv linker
> is emitting:
> /opt/riscv32i/lib/gcc/riscv32-unknown-elf/7.2.0/../../../../riscv32-unknown-elf/bin/ld: tests/auipc.o(.text+0x32): 6 bytes required for alignmentto 8-byte boundary, but only 4 present
>
> We are missing a space in the error message.
>
> 	bfd/
> 	* elfnn-riscv.c (_bfd_riscv_relax_align): Add space between alignment
> 	and to in error message.
> ---
>  bfd/elfnn-riscv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
> index b6e389270f..e782a6083e 100644
> --- a/bfd/elfnn-riscv.c
> +++ b/bfd/elfnn-riscv.c
> @@ -3077,7 +3077,7 @@ _bfd_riscv_relax_align (bfd *abfd, asection *sec,
>    if (rel->r_addend < nop_bytes)
>      {
>        (*_bfd_error_handler)
> -	(_("%B(%A+0x%lx): %d bytes required for alignment"
> +	(_("%B(%A+0x%lx): %d bytes required for alignment "
>  	   "to %d-byte boundary, but only %d present"),
>  	   abfd, sym_sec, rel->r_offset, nop_bytes, alignment, rel->r_addend);
>        bfd_set_error (bfd_error_bad_value);



More information about the Binutils mailing list