Go to the FreeLists Home Page Home Signup Help Login
 



[haiku-development] || [Date Prev] [03-2008 Date Index] [Date Next] || [Thread Prev] [03-2008 Thread Index] [Thread Next]

[haiku-development] Re: Reason for linkhack.c in the kernel?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 03 Mar 2008 00:27:37 +0100 CET
salierix <salierix@xxxxxxxxx> wrote:
> Why is the empty file linkhack.c compiled into kernel_core.o and 
> linked to
> form linkhack.so, both of which are used in linking
> the kernel executable. Obviously linkhack exists to solve some 
> problem so
> I'm curious about what that may be.

IIRC it's needed to let GCC/ld work correctly; the kernel would not 
export any symbols without it. It's been some time since I actually 
looked at it, but it was really needed back then (dunno if that is 
still the case with GCC 4) ;-)

Bye,
   Axel.






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.