问题标签 [jump-table]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
44 浏览

gcc - 在 x86 程序集中定位跳转表

x86 elf 代码中的跳转表在哪里?

progname:文件格式elf64-x86-64

我有一个带有 10 个案例(包括默认案例)的基本开关案例。如果 x=2,则进入 switch case 代码中的第二个块。需要帮助了解 gcc 生成的跳转表在 elf 文件中的确切位置以及哪个部分。我粘贴了objdump -dr progname上面的输出。