> I found that if I compile binaries to object files under linux and then
> link it under hurd agains its libc everything works OK.

It is true that they are both ELF/x86 platforms.  But the ABIs are not
binary compatible at any level.  So compiling sources with Linux header
files and then linking on the Hurd is not going to work (any cases that
work are just luck, but you cannot expect to do this generally).

> I'am trying to port a386 and Linux/a386 to hurd, so I'm compiling linux
> kernel under linux and I would like to link it against hurd's a386 and
> libc, but the problem is that I'm not using gcc but ld directly.

You'll have to give more details about precisely what you are doing.  The
only things that you can compile in a Linux native development environment
and then link on the Hurd are things that use no system header files at
all.  (For example, kernels like gnumach, and kernel-building libraries
like those in the oskit, you can compile on any ELF/x86 platform and link
on any other ELF/x86 platform without a problem; that is because these
sources do not use any of the development environment's installed header
files.)

Reply via email to