gc-section

Daniel Jacobowitz drow@mvista.com
Mon Mar 18 16:46:00 GMT 2002


On Tue, Mar 19, 2002 at 10:55:21AM +1030, Alan Modra wrote:
> > Is this 'drop' the only problem one will come across if one were to have GC
> > work with shared libraries ?
> 
> You would also need to traverse all dynamic symbols the library
> exports, and ensure that you don't drop their sections.  The library
> itself may not reference all of it's symbols.

Is gc-sections even generally feasible in a dynamically linked binary? 
Some could be provided for the use of a dlopen'd library, for instance.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list