Assembly in DragonFly

joerg at britannica.bec.de joerg at britannica.bec.de
Tue Mar 14 04:06:28 PST 2006


On Tue, Mar 14, 2006 at 12:47:56PM +0530, Karthik Subramanian wrote:
> 2. Ran "as -o hello.o hello.s; ld -o hello hello.o; ./hello", and sawthis on the console:
> ELF binary type "0" not known.Abort trap

Sure. DragonFly uses the ELF ABI note as you found out later to decide
which kernel ABI to use. Using ld directly and not linking crt1.o
doesn't create the section. It would also be possible to use brandelf,
but that is a nasty hack which should die.

Joerg





More information about the Users mailing list