bug-hurd
[Top][All Lists]
Advanced

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

Re: glibc problem pinned down


From: Roland McGrath
Subject: Re: glibc problem pinned down
Date: Mon, 16 Jul 2001 23:58:19 -0400 (EDT)

See csu/abi-note.S in the libc sources for some explanation.  
You are trying to load a binary that has the wrong ABI note in it, i.e. a
binary that got linked with the Linux crt1.o instead of the Hurd one.

Try objdump --private-headers on a binary and you will see the NOTE header.
Its file location should correspond with the .note.ABI-tag section
shown by objdump -h.  Check its contents with objdump -s -j .note.ABI-tag;
a Linux binary looks like this:

/bin/sh:     file format elf32-i386

Contents of section .note.ABI-tag:
 8048108 04000000 10000000 01000000 474e5500  ............GNU.
 8048118 00000000 02000000 00000000 00000000  ................

For Hurd/i386, that should show:

 8048118 01000000 00000000 00000000 00000000  ................

For comparison, do objdump -s csu/abi-note.o in your libc build.


If your cross compiler is scrod such that you get the Linux startfiles with
the Hurd libraries, such a link will probably work ok but would result in
this lossage.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]