#129 ✓resolved
Peter Johnson

YYdscvafZTgajkdfv

Reported by Peter Johnson | June 25th, 2011 @ 07:50 PM

Originally posted on Trac by transient316@westparkcom.net
Original Trac Ticket

  Description

trying to compile a nasm-compatible assembly file that exports a function that has a fastcall signature in C. MSVC generates a symbol looking with the following:

@con32_puts@8

nasm accepts this:

global @con32_puts@8 ; fastcall name
@con32_puts@8:

yasm says this:

../con32.asm:111: warning: ignoring unrecognized character @' ../con32.asm:112: warning: ignoring unrecognized character@'

Since nasm can't output to either elf64 nor coff64, I was forced to look for a replacement. The failure to parse this symbol is causing link failure and I'm at a stand-still on my project.

Using yasm 0.6.2.1985

Trac Attachments

h3. Trac Comments
comment:1

              Changed 3 years ago by peter


(In [2038]) Fix #134: Allow '@' as the first character of an identifier, like NASM does.

      comment:1

                  Changed 3 years ago by peter

      Status
        changed from new to closed
    
      Resolution
        set to fixed

(In [2038]) Fix #134: Allow '@' as the first character of an identifier, like NASM does.

      Status
        changed from new to closed
    
      Resolution
        set to fixed

comment:2

              Changed 3 years ago by peter@tortall.net


As a workaround (that will work on older versions of yasm as well as NASM), you can prefix with '$', e.g.

global $@con32_puts@8
$@con32_puts@8:

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket

Pages