diff --git a/src/compartment.c b/src/compartment.c index d5f1942..9ee41f6 100644 --- a/src/compartment.c +++ b/src/compartment.c @@ -884,8 +884,9 @@ resolve_rela_syms(struct Compartment *new_comp) if (curr_rela_map->rela_sym_type == STT_TLS) { - curr_rela_map->target_func_address = (char*) - curr_rela_map->target_func_address + prev_tls_secs_size; + curr_rela_map->target_func_address + = (char *) curr_rela_map->target_func_address + + prev_tls_secs_size; continue; } diff --git a/tests/simple_thrloc_var.c b/tests/simple_thrloc_var.c index 0b1dbcc..6c2eb7c 100644 --- a/tests/simple_thrloc_var.c +++ b/tests/simple_thrloc_var.c @@ -7,10 +7,14 @@ _Thread_local static int val3 = INT_MAX; _Thread_local static long val4 = LONG_MAX; _Thread_local long val5; -int get_ext(); -int get_ext_stat(); -void use_val(); -void do_ext_check(int); +int +get_ext(); +int +get_ext_stat(); +void +use_val(); +void +do_ext_check(int); int do_val2()