bfc0

bfc0

V2EX member #606149, joined on 2022-12-12 19:39:45 +08:00
Today's activity rank 20201
Per bfc0's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
bfc0's recent replies
你通过 gcc -Wall -g -o test.o -c test.c -m32 生成的是“可重定位目标文件”,其经过链接后得到“可执行目标文件”

在链接前,符号的具体地址是不知道的,所以会生成占位的指令,就是那两个指向 `print_banner+xxx` 的 call 指令

链接后两个 call 应该是 `__x86.get_pc_thunk.ax` 和 `puts@plt`

至于为什么要有 `get_pc_thunk` 调用是因为 x86 没有 PC 相对寻址,所以需要通过 call 让处理器将 PC 压栈
ZSM3S964XRKDKU3AXUWB3XB 已兑换,感谢🙏
C0KNTXXDKQ5K82M6YM4HQF5 已用
Jun 29, 2023
Replied to a topic by Linvas 程序员 如何自己搭一个 GIS 的地图?
自建的话用 Geoserver 做瓦片服务,前端用 Leaflet 或者 openlayers 搭一个
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5710 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 07:02 · PVG 15:02 · LAX 00:02 · JFK 03:02
♥ Do have faith in what you're doing.