LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   compiling .s file complains about junk at end of line, @ (https://www.linuxquestions.org/questions/programming-9/compiling-s-file-complains-about-junk-at-end-of-line-%40-946847/)

dfatlq 05-25-2012 11:00 AM

compiling .s file complains about junk at end of line, @
 
Basically it looks like it doesn't like the @ sign in the name of functions. Below is an example of where it complains on both lines about the @ (if I remove the @4, it still complains). How do I create a function with @ sign??

// had to use c style comments

.data
.global __myvar:
. long $0x1234

.text

.global @__myfunc@4

@__myfunc@4:
ret


All times are GMT -5. The time now is 08:26 PM.