RE: linker issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux