diff --git a/scripts/gen_kobject_list.py b/scripts/gen_kobject_list.py index 0e3d7320ae7..596102627c7 100755 --- a/scripts/gen_kobject_list.py +++ b/scripts/gen_kobject_list.py @@ -234,6 +234,7 @@ def write_gperf_table(fp, eh, objs, static_begin, static_end): # Generate the array of already mapped thread indexes fp.write('\n') + fp.write('Z_GENERIC_SECTION(.kobject_data.data) ') fp.write('u8_t _thread_idx_map[%d] = {' % (thread_max_bytes)) for i in range(0, thread_max_bytes):