Skip to content

Commit

Permalink
clean up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ravyu-jump committed May 15, 2024
1 parent 2fbf62d commit d8121a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ballet/sbpf/fd_sbpf_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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? */

Expand Down

0 comments on commit d8121a9

Please sign in to comment.