On Fri, Feb 27, 2009 at 11:42 PM, ron minnich <[email protected]> wrote:
>
> Beat that.
>
> ron
>
>
nm shows that printf gets changed for puts, so after taking everything
out:
int
main(int argc, char *argv[])
{
printf(¨hello darkness¨);
}
//no includes... no defines, nothing I am paranoid about libc now
gcc -c darkness darkness.c
darkness.c: In function 'main':
darkness.c:5: warning: incompatible implicit declaration of built-in
function 'printf'
wait, builtin??
nm darkness.o
00000000 T main
U puts
puts?. where did that come from hmm ah builtin...
quoting some anonymous gcc developer
you are not *allowed* to modify the C library
functions unless you ask gcc for permission...
gcc -fno-builtin
gcc -please-let-me-write-my-function-please...
--
- curiosity sKilled the cat