[PATCH] ld support for position independent executables

Daniel Jacobowitz drow@mvista.com
Thu May 29 13:51:00 GMT 2003


On Thu, May 29, 2003 at 03:03:53PM +0200, Jakub Jelinek wrote:
> -fpic), gcc will still need changing (at least specs file changes
> to use Scrt1.o and pass -pie through to ld, but I'd like also to add
> -fpie/-fPIE switches similar to -fpic/-fPIC, which would allow gcc to make
> similar assumptions about symbol visibility as for binaries.

This sounds like a perfect example to split up the current
-fPIC/flag_pic to separate between PIC code and shared library code...
esp. for arches where all code is PIC anyway.


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Binutils mailing list