[smap] startCode of final segment must be 0xFFFF

Fixes #17