aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJens Remus <jremus@linux.ibm.com>2025-03-10 13:14:08 +0100
committerJens Remus <jremus@linux.ibm.com>2025-03-10 13:14:08 +0100
commit28704396ababc06741fbe97b36e6d6e736553849 (patch)
tree1d4146f0e6a298f0962660c473df4b0310c4465b /gdb
parent768a8d310ddce93937f850f4bc6d799bd7a1a2ee (diff)
downloadbinutils-28704396ababc06741fbe97b36e6d6e736553849.zip
binutils-28704396ababc06741fbe97b36e6d6e736553849.tar.gz
binutils-28704396ababc06741fbe97b36e6d6e736553849.tar.bz2
ld: Cleanup sframe_decoder_init_func_bfdinfo use of reloc cookie
The loop did set cookie->rel to the i-th relocation twice. At the beginning using the loop counter. At the end by incrementing. One approach is sufficient. Change cookie to pointer-to-const, replace cookie->rel by rel, initialize before the loop and increment at the end, and merge the two assertions (for cookie->rel) into one. While at it change sec to pointer-to-const. bfd/ * elf-sframe.c (sframe_decoder_init_func_bfdinfo): Cleanup use of relocation cookie. Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions