site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=FxUNiwCqfDK6WOcErmKWMAMW7me+VxEzMBtL33enpNUlcOndUmrrkN+rVCy+HBcN2d+wvqjSGeKsOkRgkLhGYlaqkahxMf89f5O5jsJdJIO0LBmMAdOcyeHnPgs7hz+5qa2mNamgGwDdBnkDIL4L/NGkPBa1wHcxilqO91Rt5g4= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=ouqRgtPLAIcgCB3lwiObV2Im5d8dvbx1rKUGdAGIW4x7a/8je3ihoOxPkSOJ9Cg6BvyLo4GU3Z+Taez5lHtvRZLDsP3H31s9VuEi3C6QJ/cTxCO/z4pJUVI2ZcK+TLrMro/EBGF/VpV3VAhRn8CuY9cboC0ueIwaGSxYLmPEcrk= Hi Thanks for the help Filipe Cabecinhas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... I'm trying to port a compiler we had in class for Mac OS X but I'm having a little problem with the executable's entry point. Our compiler translates from the source language to assembly, then I would assemble it with NASM, link it with our run-time library and then I could run it. I tried to port the run-time library (changing the "int 0x80" to "sysenter"s and some other house-keeping stuff) and I'm trying to test it to see if that went well. The problem is: After the assembling and linking part (both go well, without any kind of warnings or errors), I try to execute it but it doesn't run. I was thinking darwin would call the _start function but maybe that's not the case. I also tried googling to see if I could tell nasm/ld which function was the entry point but I had no luck. The question is: how does darwin know where is the entry point of the binary and how can I choose it? If I should post in another list please tell me which. By reading the titles of the lists, this one seemed the best. This email sent to site_archiver@lists.apple.com
participants (1)
-
Filipe Cabecinhas