Community
Participate
Working Groups
In file org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java, the makeShort, makeInt, etc. routines are all buggy. They use arithmetic operations rather than logical operations to extract endian dependent values from a file. e.g: makeShort routine currently has: return (short) ( (val[offset + 0] << 8) + val[offset + 1]); But this should be: short v2 = (short)(val[offset + 0] << 8; return v2 | (val[offset+1] & 0xff);