linker issue

nagaraju.m nagaraju.m@redpinesignals.com
Wed Jun 10 05:45:00 GMT 2009


Hi John,

Thanks for the information. I did as you suggested and it is working fine..

Thanks,
Nagaraju


John (Eljay) Love-Jensen wrote:
> 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