bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Broken message (extraction) in binutils 2.24.90


From: Nicholas Clifton
Subject: Re: Broken message (extraction) in binutils 2.24.90
Date: Thu, 30 Oct 2014 09:59:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hi Göran,

In readelf.c, in the macro CHECK_ENTSIZE_VALUES, there is this code

   error (_("Section %d has invalid sh_entsize of %" BFD_VMA_FMT "x\n"), \
         i, section->sh_entsize);    \

When extracting message strings from this code, only the first part
will be extracted:

   msgid "Section %d has invalid sh_entsize of %"

Obviously, that isn't the string that will be sent to the function,
and thus, any translations of this message will be ignored.

A similar problem reappears later in the same file in
dynamic_sction_mips_val:

   printf (_("<corrupt: %" BFD_VMA_FMT "d>"), entry->d_un.d_ptr);

I have checked in a patch (attached) to fix these problems.

Cheers
  Nick


Attachment: readelf.c.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]