berkus / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

When input file is not present, end the linker with error but not assertion #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$ ~/mclinker/optimized/ld.mcld crt0.o
Error: cannot open file crt0.o.
Error Code: No such file or directory
ld.mcld: ./../lib/LD/ELFObjectReader.cpp:59: virtual bool 
mcld::ELFObjectReader::isMyFormat(mcld::Input&) const: Assertion 
`pInput.hasMemArea()' failed.
Aborted (core dumped)

MCLinker should exist after throwing the Errors.

Original issue reported on code.google.com by mysekki on 27 Dec 2012 at 10:07

GoogleCodeExporter commented 9 years ago
https://groups.google.com/group/mclinker/browse_thread/thread/20f178e742fd8528

It's easy. I will add Diagnose before normalization.

Original comment by LubaTang on 28 Dec 2012 at 5:46

GoogleCodeExporter commented 9 years ago
I fixed it at Revision 998275776109
Please verify it.

Original comment by LubaTang on 28 Dec 2012 at 6:16