Skip to content

Commit c4b954a

Browse files
committed
sbpf: elf loader rewrite pt. 2
1 parent df2ae58 commit c4b954a

File tree

15 files changed

+1018
-1339
lines changed

15 files changed

+1018
-1339
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
697bd4ac4f19e042403fe17a2ba6d0baaa161773
1+
67e30036a4b3b448dfcf73649974d60c55a10bea

src/ballet/elf/fd_elf64.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ struct __attribute__((packed)) fd_elf64_rela_ {
8484
};
8585
typedef struct fd_elf64_rela_ fd_elf64_rela;
8686

87-
/* fd_elf64_dyn: Dynamic section entry */
87+
/* fd_elf64_dyn: Dynamic section entry
88+
NOTE: The ELF specification states that d_tag should be a signed
89+
long, but the Solana ELF loader uses an unsigned long. */
8890

8991
struct __attribute__((packed)) fd_elf64_dyn_ {
90-
long d_tag;
92+
ulong d_tag;
9193
union {
9294
ulong d_val;
9395
ulong d_ptr;

0 commit comments

Comments
 (0)