diff options
author | Chen Gang <gang.chen.5i5j@gmail.com> | 2015-03-18 11:42:19 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-03-18 11:45:12 +1030 |
commit | b3862264bc6009a993685ee5e9dd2879a503e36a (patch) | |
tree | 4d7933aa77cbd84d1ed787befe1e6d1975d5eb96 /ld/ldmain.c | |
parent | 091021faaa699c11dd50d9ff56d8713953666f65 (diff) | |
download | gdb-b3862264bc6009a993685ee5e9dd2879a503e36a.zip gdb-b3862264bc6009a993685ee5e9dd2879a503e36a.tar.gz gdb-b3862264bc6009a993685ee5e9dd2879a503e36a.tar.bz2 |
Use %F instead of %X for einfo
When src or dst is NULL, the next fread or fwrite will cause a
segmentation fault, so we need to treat it as fatal.
* ldmain.c (main): Use %F instead of %X for einfo.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 4b41288..6674a80 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -484,10 +484,10 @@ main (int argc, char **argv) dst = fopen (dst_name, FOPEN_WB); if (!src) - einfo (_("%X%P: unable to open for source of copy `%s'\n"), + einfo (_("%P%F: unable to open for source of copy `%s'\n"), output_filename); if (!dst) - einfo (_("%X%P: unable to open for destination of copy `%s'\n"), + einfo (_("%P%F: unable to open for destination of copy `%s'\n"), dst_name); while ((l = fread (buf, 1, bsize, src)) > 0) { |