aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2024-12-27 11:37:42 +0100
committerJan Beulich <jbeulich@suse.com>2024-12-27 11:37:42 +0100
commitd5827a0e838caacb0337be95e6661fd8281e1968 (patch)
tree88904623302b33f6eb740db480727b4fcda6e93c
parentcc26d6caf1e36d6d2cd8ee6f4c206fe68d597e5e (diff)
downloadbinutils-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 9f5ac63..4b8efeb 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -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);
}
}