The ELF symtab table reports that my variable has size 16. In particular, after running readelf -s mybinary, I see the following output:
Num: Value Size Type Bind Vis Ndx Name
83: 0804a718 16 OBJECT LOCAL DEFAULT 25 myVar
However, when I open GDB to examine the size of myVar, I see the following output:
print sizeof(myVar)
$1 = 4
I am not sure where this discrepancy is arising from. For some background, I am using x86-32, and I do not have access to the source file, so I do not know the actual type of myVar.