Enhance layoutrom.py to work around a binutils quirk.