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

Alan Modra amodra@gmail.com
Tue Jan 5 03:04:00 GMT 2010


On Mon, Jan 04, 2010 at 05:02:03PM -0800, Sriraman Tallam wrote:
> Out of these, removing __libc_atexit is responsible for this behaviour
> as it registers __IO_cleanup which flushes the buffer. Also, to me, it
> looks like the other symbols with __libc prefix are also important.
> 
> Here is a patch to make gc-sections not delete sections prefixed with
> __libc and this fixes the problem.

I think this is simply a glibc bug, and that we shouldn't do anything
special with __libc* sections.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list