I’m investigating some objects inside ELF file and using readelf for that purpose. This sample of readelf shows the size (bytes) of the objects on column 3, On large objects, readelf prints in Hex instead of dec, This breaks my size sorting attempts. (sorting ignores hex value) I tried translating all hex to dec like this: and got The size