diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/imxtools/sbtools/elf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/imxtools/sbtools/elf.c b/utils/imxtools/sbtools/elf.c index c875cc7963..d15c27b206 100644 --- a/utils/imxtools/sbtools/elf.c +++ b/utils/imxtools/sbtools/elf.c | |||
@@ -694,12 +694,12 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, | |||
694 | elf_add_load_section(params, shdr[i].sh_addr, shdr[i].sh_size, data, sec_name); | 694 | elf_add_load_section(params, shdr[i].sh_addr, shdr[i].sh_size, data, sec_name); |
695 | free(data); | 695 | free(data); |
696 | 696 | ||
697 | printf(user, false, "create load segment for %s\n", sec_name); | 697 | printf(user, false, OFF, "create load segment for %s\n", sec_name); |
698 | } | 698 | } |
699 | else if(shdr[i].sh_type == SHT_NOBITS && shdr[i].sh_flags & SHF_ALLOC) | 699 | else if(shdr[i].sh_type == SHT_NOBITS && shdr[i].sh_flags & SHF_ALLOC) |
700 | { | 700 | { |
701 | elf_add_fill_section(params, shdr[i].sh_addr, shdr[i].sh_size, 0, sec_name); | 701 | elf_add_fill_section(params, shdr[i].sh_addr, shdr[i].sh_size, 0, sec_name); |
702 | printf(user, false, "create fill segment for %s\n", sec_name); | 702 | printf(user, false, OFF, "create fill segment for %s\n", sec_name); |
703 | } | 703 | } |
704 | else if(shdr[i].sh_type == SHT_SYMTAB) | 704 | else if(shdr[i].sh_type == SHT_SYMTAB) |
705 | { | 705 | { |
@@ -714,7 +714,7 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, | |||
714 | Elf32_Sym *symdata = elf_load_section(&shdr[i], read, printf, user); | 714 | Elf32_Sym *symdata = elf_load_section(&shdr[i], read, printf, user); |
715 | if(!symdata) | 715 | if(!symdata) |
716 | { | 716 | { |
717 | printf(user, true, "cannot read elf section %s\n", sec_name); | 717 | printf(user, true, GREY, "cannot read elf section %s\n", sec_name); |
718 | free(symstrtab); | 718 | free(symstrtab); |
719 | goto Lerr; | 719 | goto Lerr; |
720 | } | 720 | } |
@@ -743,7 +743,7 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, | |||
743 | case STT_OBJECT: sym->type = ESYT_OBJECT; break; | 743 | case STT_OBJECT: sym->type = ESYT_OBJECT; break; |
744 | case STT_NOTYPE: default: sym->type = ESYT_NOTYPE; break; | 744 | case STT_NOTYPE: default: sym->type = ESYT_NOTYPE; break; |
745 | } | 745 | } |
746 | printf(user, false, "add symbol %s at %#x, type %d, size %d, section %s\n", | 746 | printf(user, false, OFF, "add symbol %s at %#x, type %d, size %d, section %s\n", |
747 | sym->name, sym->addr, sym->type, sym->size, sym->section); | 747 | sym->name, sym->addr, sym->type, sym->size, sym->section); |
748 | } | 748 | } |
749 | free(symdata); | 749 | free(symdata); |
@@ -751,7 +751,7 @@ bool elf_read_file(struct elf_params_t *params, elf_read_fn_t read, | |||
751 | } | 751 | } |
752 | else | 752 | else |
753 | { | 753 | { |
754 | printf(user, false, "filter out %s, type %d\n", sec_name, shdr[i].sh_type); | 754 | printf(user, false, OFF, "filter out %s, type %d\n", sec_name, shdr[i].sh_type); |
755 | } | 755 | } |
756 | 756 | ||
757 | } | 757 | } |