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 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


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