8000 head.s as编译错误 · Issue #1 · voidccc/linux0.00 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

head.s as编译错误 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pwnht opened this issue Jan 11, 2020 · 0 comments
Open

head.s as编译错误 #1

pwnht opened this issue Jan 11, 2020 · 0 comments

Comments

@pwnht
Copy link
pwnht commented Jan 11, 2020

head.s: Assembler messages:
head.s:77: 错误:invalid instruction suffix for pushf' head.s:79: 错误:invalid instruction suffix for popf'
head.s:86: 错误:invalid instruction suffix for push' head.s:87: 错误:invalid instruction suffix for push'
head.s:88: 错误:invalid instruction suffix for pushf' head.s:89: 错误:invalid instruction suffix for push'
head.s:90: 错误:invalid instruction suffix for push' head.s:115: 错误:invalid instruction suffix for push'
head.s:128: 错误:invalid instruction suffix for pop' head.s:135: 错误:you can't push %ds'
head.s:136: 错误:invalid instruction suffix for push' head.s:141: 错误:invalid instruction suffix for pop'
head.s:142: 错误:you can't pop %ds' head.s:148: 错误:you can't push %ds'
head.s:149: 错误:invalid instruction suffix for push' head.s:158: 错误:unsupported instruction ljmp'
head.s:162: 错误:unsupported instruction ljmp' head.s:164: 错误:invalid instruction suffix for pop'
head.s:165: 错误:you can't pop %ds' head.s:171: 错误:you can't push %ds'
head.s:172: 错误:invalid instruction suffix for push' head.s:173: 错误:invalid instruction suffix for push'
head.s:174: 错误:invalid instruction suffix for push' head.s:175: 错误:invalid instruction suffix for push'
head.s:179: 错误:invalid instruction suffix for pop' head.s:180: 错误:invalid instruction suffix for pop'
head.s:181: 错误:invalid instruction suffix for pop' head.s:182: 错误:invalid instruction suffix for pop'
head.s:183: 错误:you can't `pop %ds'

出现这个原因是boot.s是32位的汇编,由于我是64位 archlinux系统,as所以编译失败建议makefile 添加 --32参数
~~~
as --32 -o head.o head.s
~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0