Re: Yasm Label question




dave wrote:
I have used yasm to assemble a short AMD64 64-bit source file which I want
to call from a gcc c program. gcc fails during linking because it does not
find the label for the entry point to the assembly code. What is the
trick to getting gcc to recognize yasm labels?

Thanks,
Dave Feustel

I assume you've tried the usual "underscore prefix" trick and that
you're defining your symbols as << extern "C" >> in your GCC program?
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: Yasm Label question
    ... to call from a gcc c program. ... find the label for the entry point to the assembly code. ... Dave Feustel ...
    (comp.lang.asm.x86)
  • Re: RH9 and gcc version problem
    ... > Thanks for your help and sympathy, Dave. ... But how do I solve all the linking ... the glibc and gcc packages don't share verison ... could just use the native system glibc libraries. ...
    (comp.os.linux.development.system)
  • Re: how to define an 8 bit integer
    ... modify any setting or declare typdefes. ... Using GCC, adding ... should do the trick. ... Like already told by the other posters, ...
    (comp.lang.c)
  • Re: Changes in Aleph1 Smashing the Stack...
    ... Use JMP and CALL with a label instead of the relative address. ... > by Aleph1 Smashing the Stack for Fun and Profit I have got some problems. ... > where I can find information about how changes in new versions of gcc ...
    (Vuln-Dev)
  • Re: Labels and pointers
    ... it (or for a case label, ... gcc compiles it but the result is strange ... and `goto' the variable's value. ...
    (comp.lang.c)