diff options
Diffstat (limited to 'utils/sbtools/sbtoelf.c')
-rw-r--r-- | utils/sbtools/sbtoelf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c index 3c1c750582..3824ee094e 100644 --- a/utils/sbtools/sbtoelf.c +++ b/utils/sbtools/sbtoelf.c | |||
@@ -77,8 +77,6 @@ char *g_out_prefix; | |||
77 | bool g_debug; | 77 | bool g_debug; |
78 | bool g_raw_mode; | 78 | bool g_raw_mode; |
79 | 79 | ||
80 | #define ROUND_UP(val, round) ((((val) + (round) - 1) / (round)) * (round)) | ||
81 | |||
82 | static uint8_t instruction_checksum(struct sb_instruction_header_t *hdr) | 80 | static uint8_t instruction_checksum(struct sb_instruction_header_t *hdr) |
83 | { | 81 | { |
84 | uint8_t sum = 90; | 82 | uint8_t sum = 90; |
@@ -495,7 +493,7 @@ static void extract(unsigned long filesize) | |||
495 | print_hex(g_buf, 16, true); | 493 | print_hex(g_buf, 16, true); |
496 | 494 | ||
497 | /* sections */ | 495 | /* sections */ |
498 | if(strcasecmp(s_getenv("SB_RAW_CMD"), "YES") != 0) | 496 | if(!g_raw_mode) |
499 | { | 497 | { |
500 | color(BLUE); | 498 | color(BLUE); |
501 | printf("Sections\n"); | 499 | printf("Sections\n"); |
@@ -747,9 +745,7 @@ int main(int argc, char **argv) | |||
747 | break; | 745 | break; |
748 | case 'k': | 746 | case 'k': |
749 | { | 747 | { |
750 | int kac; | 748 | add_keys_from_file(optarg); |
751 | key_array_t ka = read_keys(optarg, &kac); | ||
752 | add_keys(ka, kac); | ||
753 | break; | 749 | break; |
754 | } | 750 | } |
755 | case 'z': | 751 | case 'z': |