diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-12-27 11:37:42 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-12-27 11:37:42 +0100 |
commit | d5827a0e838caacb0337be95e6661fd8281e1968 (patch) | |
tree | 88904623302b33f6eb740db480727b4fcda6e93c | |
parent | cc26d6caf1e36d6d2cd8ee6f4c206fe68d597e5e (diff) | |
download | binutils-d5827a0e838caacb0337be95e6661fd8281e1968.zip binutils-d5827a0e838caacb0337be95e6661fd8281e1968.tar.gz binutils-d5827a0e838caacb0337be95e6661fd8281e1968.tar.bz2 |
bfd/ELF: refine segment index in filepos assignment diag
Reporting an internal loop index isn't helpful for the user to determine
which segment the problem is with. Report the PHDR index instead.
-rw-r--r-- | bfd/elf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6398,8 +6398,8 @@ assign_file_positions_for_load_sections (bfd *abfd, { _bfd_error_handler /* xgettext:c-format */ - (_("%pB: section `%pA' can't be allocated in segment %d"), - abfd, sec, j); + (_("%pB: section `%pA' can't be allocated in segment %u"), + abfd, sec, m->idx); print_segment_map (m); } } |