send2vinnie / mclinker

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

ld.mcld tries to read from output file #139

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.create a helloworld.c with 
int main() { return 0; }

2. Use the option below 

ld.mcld -static -march x86 --build-id -o a.out 1.o

3.
ld.mcld -static -march x86 --build-id -o a.out 1.o
Fatal: file a.out is too small to read.
  file size is 0.
  read from 0.

What is the expected output? What do you see instead?

Expect to see no error

What version of the product are you using? On what operating system?

latest revision.
Please provide any additional information below.

Original issue reported on code.google.com by shanka...@gmail.com on 12 Apr 2013 at 7:31

GoogleCodeExporter commented 9 years ago
I will fix it.

Original comment by LubaTang on 26 Apr 2013 at 11:03

GoogleCodeExporter commented 9 years ago
The bug looks like from --build-id. I will add a new regression test.

Original comment by LubaTang on 26 Apr 2013 at 11:06

GoogleCodeExporter commented 9 years ago
Thanks for the report.

Add a regression test at Revision 87b070697b1e
Fix the bug at Revision 80f7a42232dd

Original comment by LubaTang on 26 Apr 2013 at 11:53