forked from qmonnet/rbpf
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement handling of R_BPF_64_64 relocations used in ld_imm64
- Loading branch information
Showing
4 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/** | ||
* @brief a program to test R_BPF_64_64 relocation handling | ||
*/ | ||
|
||
typedef unsigned long int uint64_t; | ||
typedef unsigned char uint8_t; | ||
|
||
extern uint64_t entrypoint(const uint8_t *input) { | ||
uint64_t (*ptr)(const uint8_t *) = entrypoint; | ||
return (uint64_t) ptr; | ||
} |
Binary file not shown.