This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A final solution. (Was Re: kernel-2.2.1-undefined references.)


>>>>> Linus Torvalds <torvalds@transmeta.com> writes:

 > On Fri, 12 Feb 1999, Mike Stump wrote:
 >> 
 >> You like the bleeding edge...  Use -ffunction-sections, and
 >> -Wl,--gc-sections when you compile.  [duck]  Make that kernel smaller,
 >> sure, no problem.

 > Hey, does that actually work reliably?

On Linux, --gc-sections only works if you link statically; using it with a
dynamic link produces a non-functional executable.  'twould be nice for
someone to fix this.

It might work fine for the kernel.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]