MAC OSX未知伪操作:.TYPE [英] mac OSX Unknown pseudo-op: .type

查看:230
本文介绍了MAC OSX未知伪操作:.TYPE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须写一些汇编code。因此,我装(每自制)GCC4.4和名为 GCC-4.4 -c asma.s ,但预计它不工作:

I have to write some assembler code. Therefore I installed gcc4.4 (per homebrew) and called gcc-4.4 -c asma.s, but it does not work as expected:

asma.s:3:Unknown pseudo-op: .type
asma.s:3:Rest of line ignored. 1st junk character valued 97 (a).

第一行只包括标准的伪操作!

The first lines consist only of standard pseudo-ops!

    .text
    .globl asma
    .type asma, @function
asma:

我必须安装一个替代汇编?

Do I have to install an alternative assembler?

推荐答案

.TYPE ELF / COFF 指令,而OSX使用的Mach-O 格式。在大多数情况下,你可以安全地删除就行了。

.type is an ELF/COFF directive, while OSX uses Mach-O format. In most cases you can safely remove the line.

这篇关于MAC OSX未知伪操作:.TYPE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆