This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: static link with gold + gc-sections does not flush stdout buffer to file.


On Monday 04 January 2010 20:02:03 Sriraman Tallam wrote:
> Hi,
> 
> Here is how to reproduce the bug :
> 
> $ cat hello.cc
> #include <stdio.h>
> int main()
> {
>   printf("Hello World\n");
> }
> 
> $ gcc hello.cc -static -Wl,--gc-sections
> $ ./a.out > tt.out
> $ wc tt.out
> 0 0 0 tt.out
> 
> 
> Also, this bug is present in GNU ld. Will file a bug for this.

glibc is broken as Alan says, but drepper isnt interested in fixing:
http://sourceware.org/bugzilla/show_bug.cgi?id=3400
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]