We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37c3bb commit 35140d3Copy full SHA for 35140d3
scripts/sorttable.h
@@ -199,6 +199,8 @@ static int compare_extable(const void *a, const void *b)
199
return 0;
200
}
201
#ifdef MCOUNT_SORT_ENABLED
202
+pthread_t mcount_sort_thread;
203
+
204
struct elf_mcount_loc {
205
Elf_Ehdr *ehdr;
206
Elf_Shdr *init_data_sec;
@@ -282,10 +284,9 @@ static int do_sort(Elf_Ehdr *ehdr,
282
284
unsigned int shnum;
283
285
unsigned int shstrndx;
286
- struct elf_mcount_loc mstruct;
287
+ struct elf_mcount_loc mstruct = {0};
288
uint_t _start_mcount_loc = 0;
289
uint_t _stop_mcount_loc = 0;
- pthread_t mcount_sort_thread;
290
#endif
291
#if defined(SORTTABLE_64) && defined(UNWINDER_ORC_ENABLED)
292
unsigned int orc_ip_size = 0;
0 commit comments