static link with gold + gc-sections does not flush stdout buffer to file.
Mike Frysinger
vapier@gentoo.org
Thu Jan 7 06:45:00 GMT 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <https://sourceware.org/pipermail/binutils/attachments/20100107/23e984dd/attachment.sig>
More information about the Binutils
mailing list