From d8121a96dfd6c0a2a333d90bba04c6ac7fc820f6 Mon Sep 17 00:00:00 2001 From: Ravyu Sivakumaran Date: Tue, 14 May 2024 16:25:05 +0000 Subject: [PATCH] clean up comments --- src/ballet/sbpf/fd_sbpf_loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ballet/sbpf/fd_sbpf_loader.c b/src/ballet/sbpf/fd_sbpf_loader.c index 94e4c2d1bf..06977672db 100644 --- a/src/ballet/sbpf/fd_sbpf_loader.c +++ b/src/ballet/sbpf/fd_sbpf_loader.c @@ -899,7 +899,7 @@ fd_sbpf_r_bpf_64_32( fd_sbpf_loader_t const * loader, fd_elf64_shdr const * shdrs = (fd_elf64_shdr const *)( elf->bin + elf->ehdr.e_shoff ); fd_elf64_sym const * dynsyms = (fd_elf64_sym const *)( elf->bin + loader->dynsym_off ); fd_elf64_sym const * sym = &dynsyms[ r_sym ]; - ulong S = sym->st_value; // symbol location + ulong S = sym->st_value; /* Verify .dynstr (TODO can we lift this out of the reloc handler?) */ REQUIRE( info->shndx_dynstr > 0 ); @@ -927,7 +927,7 @@ fd_sbpf_r_bpf_64_32( fd_sbpf_loader_t const * loader, behavior according to protocol rules. */ /* Register function call */ - ulong target_pc = (S-sh_addr) / 8UL; // offset in terms of 64-bit instructions + ulong target_pc = (S-sh_addr) / 8UL; /* TODO bounds check the target? */