Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,493 of 2,753    |
|    Vasvi Kakkad to All    |
|    How to link file with wrapper function    |
|    04 Nov 08 15:53:20    |
   
   From: vasvibhatt@gmail.com   
      
   Hi All,   
      
   I have written wrapper functions for some predefined library functions in C.   
   Can anybody help me how do I build the sourcecode of gcc with new   
   functions and how to link my wrapper lib prior to standard lib? Do I   
   to change makefile settings??   
      
   Ex:   
   1) wrapper function file:   
   wrapper.c   
      
   void *malloc(size_t size) {   
   -----   
   return (malloc(size));   
   -----   
   }   
      
   Thanks in advance....   
      
   Regards,   
   - Vasvi   
   [It'll be a challenge. -John]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca