Skip to content
Commit 3068f668 authored by Ilya Tagunov's avatar Ilya Tagunov Committed by Anas Nashif
Browse files

scripts: process_gperf: upgrade the asso_values type to unsigned short



The gperf tool automatically selects the optimal data type for the
asso_values table, depending on MAX_HASH_VALUE. However, there is
a corner case when the tables generated on different stages of the
build process have different data types, causing a link-time error.
Upgrade the data type for the table from unsigned char to unsigned
short to at least exclude this 8-bit to 16-bit transition. There is
another potential issue with the 16-bit to 32-bit transition, but
it seems not very likely to have 65k kernel objects anytime soon.

Signed-off-by: default avatarIlya Tagunov <Ilya.Tagunov@synopsys.com>
parent 5be4aed6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment