• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Callling clib from assembly language
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Callling clib from assembly language


  • Subject: Re: Callling clib from assembly language
  • From: "David N. Williams" <email@hidden>
  • Date: Mon, 17 Apr 2006 07:31:06 -0400
  • Organization: University of Michigan

Matt Watson wrote:
That's a fine way to do it for non-PIC executables.

Your code is identical to the following when compiled under GCC with -mdynamic-no-pic:

#include <math.h>

static double (*mysqrtptr)(double) = sqrt;

double mysqrt(double d)
{
        return mysqrtptr(d);
}


Many thanks, Matt, that's good to know! In this case, it appears I'm doing the right thing.

-- David W.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Callling clib from assembly language
      • From: Jonas Maebe <email@hidden>
References: 
 >Callling clib from assembly language (From: "David N. Williams" <email@hidden>)
 >Re: Callling clib from assembly language (From: Matt Watson <email@hidden>)

  • Prev by Date: Re: silly GNU make question
  • Next by Date: Re: Callling clib from assembly language
  • Previous by thread: Re: Callling clib from assembly language
  • Next by thread: Re: Callling clib from assembly language
  • Index(es):
    • Date
    • Thread