TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Writing Assembly on OpenBSD (x86) (2012)

38 点作者 mulander超过 9 年前

3 条评论

ori_b超过 9 年前
What I&#x27;m curious about is whether there&#x27;s a good writeup of what you need to do to handle the (presumably) ASLR that OpenBSD has.<p>I&#x27;ve been having a hell of a time figuring out what&#x27;s going on when I try to port Myrddin -- the code I generate will often segfault, on a string that GDB seems to think is perfectly valid, and happily prints. Some of the strings have clearly wonky addresses, (eg, within the zero page), others don&#x27;t look insane.
评论 #10969255 未加载
echochar超过 9 年前
What is the purpose of the .note section? If it is left out, it appears from ktrace that the kernel assumes the binary uses some other ABI, e.g., Linux, etc. (compat_linux, etc.) and the &#x2F;emul shadow directory gets searched.
评论 #10966376 未加载
freebasedgirl超过 9 年前
OpenBSD is a great platform to find those bugs in your asm&#x2F;c. Segfaults that would not happen on Linux. (e.g. closing a file before exit that you never opened). <a href="http:&#x2F;&#x2F;nixdoc.net&#x2F;man-pages&#x2F;OpenBSD&#x2F;malloc.conf.5.html" rel="nofollow">http:&#x2F;&#x2F;nixdoc.net&#x2F;man-pages&#x2F;OpenBSD&#x2F;malloc.conf.5.html</a> is also another great place to tweak memory allocation behaviors to find those application corner cases that break.