BR 2611906: proper error message for start < origin
commit04616f4e85d7c5c8501432f7124cf15f440aeae1
authorH. Peter Anvin <hpa@zytor.com>
Sun, 22 Feb 2009 01:19:05 +0000 (21 17:19 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 22 Feb 2009 01:19:05 +0000 (21 17:19 -0800)
tree0e938ef7824594b31e71c1768372478aff85ca9d
parent719f55938e3a0403eecd1952b3ef5c03b96231e2
BR 2611906: proper error message for start < origin

When a section other than .text has a start < origin, we would
segfault; fix that.

Furthermore, at bin_cleanup() we don't have usable file/line
information, so pass ERR_NOFILE to the error() function.  Perhaps less
than ideal, but better than printing a null pointer.
output/outbin.c