X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=scripts%2Fsorttable.h;h=deb7c1d3e979d42adf4a15f28063c268f9580954;hb=55d2d046b23b9bcb907f6b3e38e52113d55085eb;hp=1e8b77928fa47612a94734b43c5ee40bfb821f5e;hpb=4b3789512f018819e0c4b0776731dc4ce694c484;p=linux-2.6-microblaze.git diff --git a/scripts/sorttable.h b/scripts/sorttable.h index 1e8b77928fa4..deb7c1d3e979 100644 --- a/scripts/sorttable.h +++ b/scripts/sorttable.h @@ -199,6 +199,8 @@ static int compare_extable(const void *a, const void *b) return 0; } #ifdef MCOUNT_SORT_ENABLED +pthread_t mcount_sort_thread; + struct elf_mcount_loc { Elf_Ehdr *ehdr; Elf_Shdr *init_data_sec; @@ -282,10 +284,9 @@ static int do_sort(Elf_Ehdr *ehdr, unsigned int shnum; unsigned int shstrndx; #ifdef MCOUNT_SORT_ENABLED - struct elf_mcount_loc mstruct; + struct elf_mcount_loc mstruct = {0}; uint_t _start_mcount_loc = 0; uint_t _stop_mcount_loc = 0; - pthread_t mcount_sort_thread; #endif #if defined(SORTTABLE_64) && defined(UNWINDER_ORC_ENABLED) unsigned int orc_ip_size = 0;