[Bug binutils/31953] Show PE objdump -P versions in human readable form

2024-07-21 Thread pali at kernel dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31953

Pali Rohár  changed:

   What|Removed |Added

 CC||nickc at redhat dot com

--- Comment #4 from Pali Rohár  ---
Nick, could you please look at these PE objdump -P changes?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31213] gas: add diagnostic when skipping CFI directives for SFrame generation

2024-07-21 Thread indu.bhagat at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31213

--- Comment #2 from Indu Bhagat  ---
Further improvements in the diagnostics issued when skipping SFrame FDE
generation were done recently:
https://sourceware.org/pipermail/binutils/2024-June/135056.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31213] gas: add diagnostic when skipping CFI directives for SFrame generation

2024-07-21 Thread indu.bhagat at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31213

Indu Bhagat  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #3 from Indu Bhagat  ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/31284] scfi: untraceable control flow should be a hard error

2024-07-21 Thread indu.bhagat at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31284

Indu Bhagat  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #2 from Indu Bhagat  ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/32001] New: Untranslated part in error message of elfxx-riscv.c:2466

2024-07-21 Thread fmarchal at perso dot be
https://sourceware.org/bugzilla/show_bug.cgi?id=32001

Bug ID: 32001
   Summary: Untranslated part in error message of
elfxx-riscv.c:2466
   Product: binutils
   Version: 2.42
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: fmarchal at perso dot be
  Target Milestone: ---

In elfxx-riscv.c:2466, the error message is constructed by concatenating the
untranslated string "internal: ".

  rps->error_handler
(_("%sunknown ISA extension `%s' in %s `%s'"),
 errmsg_internal, subset, errmsg_caller, implicit_exts);

In the above instruction, errmsg_internal is:

const char *errmsg_internal = explicit_subset == NULL ? "" : "internal: ";

Strings shown to the user should be translated.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/31179] RISC-V: The SET/ADD/SUB fix breaks ABI compatibility with 2.41 objects

2024-07-21 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31179

Sam James  changed:

   What|Removed |Added

   See Also||https://github.com/riscv-no
   ||n-isa/riscv-elf-psabi-doc/p
   ||ull/414
 CC||sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug binutils/32002] New: Untranslated plural in readelf.c:9433

2024-07-21 Thread fmarchal at perso dot be
https://sourceware.org/bugzilla/show_bug.cgi?id=32002

Bug ID: 32002
   Summary: Untranslated plural in readelf.c:9433
   Product: binutils
   Version: 2.42
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: fmarchal at perso dot be
  Target Milestone: ---

In readelf.c, line 9431 looks like a hard coded plural:

  if (num_rela == 1)
/* This is unlikely, but possible.  */
printf (_(" at offset %#" PRIx64
  " contains 1 entry which relocates 1 location:\n"),
rel_offset);
  else
printf (_(" at offset %#" PRIx64 " contains %" PRIu64
  " entries which relocate %" PRIu64 " locations:\n"),
rel_offset, num_rela, count_relr_relocations (filedata,
section));

As explained in
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html gettext
offers the function ngettext to handle plural in a way that's compatible with
other languages beside English.

As the string contains two distinct plural counts, building such a sentence is
rather clumsy, unfortunately. It might look like this (beware: not actually
tested!):

uint64_t num_reloc = count_relr_relocations (filedata, section);
printf (_(" at offset %#" PRIx64), rel_offset);
printf (ngettext(" contains %" PRIu64" entry which relocates", " contains %"
PRIu64" entries which relocate", num_rela), num_rela), 
printf (ngettext(" %" PRIu64 " location:\n", " %" PRIu64 " locations:\n",
num_reloc), num_reloc)

This is still not as easy to translate as usual self contained sentences but
it's the only way I could find.

-- 
You are receiving this mail because:
You are on the CC list for the bug.