linker issue
John (Eljay) Love-Jensen
eljay@adobe.com
Mon Jun 8 13:12:00 GMT 2009
Hi Nagaraju,
> I have a problem in Linker. I have some hard coded routines in a file.
My problem is, when some program is using that function then my
linker is loading all the sub-routines in that file as a result my code
size got increased.
The problem is not in the linker, it is in your code.
Break out your routines into separate files.
That way, your routines will be in separate translation units.
Only link against the object files that you want.
HTH,
--Eljay
More information about the Gcc-help
mailing list