{"id":85009,"date":"2026-07-26T22:18:09","date_gmt":"2026-07-26T14:18:09","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85009.html"},"modified":"2026-07-26T22:18:09","modified_gmt":"2026-07-26T14:18:09","slug":"%e3%80%90linux%e5%ba%93%e5%88%b6%e4%bd%9c%e4%b8%8e%e5%8e%9f%e7%90%86%e8%bf%9b%e9%98%b6%e3%80%91%e4%bb%8e-elf-%e8%a3%85%e8%bd%bd%e5%88%b0%e5%bb%b6%e8%bf%9f%e7%bb%91%e5%ae%9a%ef%bc%9a%e6%90%9e%e6%87%82","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85009.html","title":{"rendered":"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a6617188100f.png\" alt=\"\u5c01\u9762\" \/><\/p>\n<p>&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;<font color=\"whiblue\">\u7231\u548c\u51b0\u9614\u4e50<\/font> &#x1f4da;\u4e13\u680f\u4f20\u9001\u95e8&#xff1a;\u300a\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u300b \u3001C&#043;&#043; &#x1f436;\u5b66\u4e60\u65b9\u5411&#xff1a;<font color=\"red\">C&#043;&#043;\u65b9\u5411\u5b66\u4e60\u7231\u597d\u8005<\/font> \u2b50\u4eba\u751f\u683c\u8a00&#xff1a;<font color=\"whiblue\">\u5f97\u77e5\u5766\u7136 &#xff0c;\u5931\u4e4b\u6de1\u7136 <\/font><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a661718bc6f2.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>&#x1f3e0;\u535a\u4e3b\u7b80\u4ecb <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a661718cad51.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\u4e00\u3001ELF \u88c5\u8f7d\u4e0e\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u7a7a\u95f4<\/li>\n<li>\n<ul>\n<li>1.1 \u78c1\u76d8\u4e2d\u7684 ELF \u5df2\u7ecf\u5305\u542b\u5730\u5740\u5e03\u5c40<\/li>\n<li>1.2 Program Header Table \u5c31\u662f\u88c5\u8f7d\u8ba1\u5212<\/li>\n<li>1.3 ELF Segment \u5982\u4f55\u521d\u59cb\u5316 VMA<\/li>\n<li>1.4 CR3\u3001MMU \u4e0e\u865a\u62df\u5730\u5740\u7ffb\u8bd1<\/li>\n<li>1.5 ELF \u5165\u53e3\u4e0e\u7a0b\u5e8f\u542f\u52a8\u987a\u5e8f<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u52a8\u6001\u5e93\u6620\u5c04\u4e0e\u8fdb\u7a0b\u95f4\u5171\u4eab<\/li>\n<li>\n<ul>\n<li>2.1 \u52a8\u6001\u5e93\u7684\u6587\u4ef6\u5c5e\u6027\u4e0e\u6620\u5c04<\/li>\n<li>2.2 \u52a8\u6001\u5e93\u4ee3\u7801\u9875\u7684\u8fdb\u7a0b\u95f4\u5171\u4eab<\/li>\n<li>2.3 \u4f7f\u7528 &#096;ldd&#096; \u67e5\u770b\u52a8\u6001\u4f9d\u8d56<\/li>\n<li>2.4 \u4f4d\u7f6e\u65e0\u5173\u4ee3\u7801\u4e0e\u88c5\u8f7d\u57fa\u5740<\/li>\n<li>2.5 \u52a8\u6001\u5e93\u6620\u5c04\u5230\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4<\/li>\n<li>2.6 \u5916\u90e8\u51fd\u6570\u8c03\u7528\u7684\u5b9a\u4f4d\u6761\u4ef6<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001GOT&#xff1a;\u4e0d\u4fee\u6539\u53ea\u8bfb\u4ee3\u7801&#xff0c;\u4e5f\u80fd\u4fee\u6b63\u8fd0\u884c\u65f6\u5730\u5740<\/li>\n<li>\n<ul>\n<li>3.1 \u5c06\u53ef\u53d8\u5730\u5740\u4ece &#096;.text&#096; \u4e2d\u5206\u79bb<\/li>\n<li>3.2 GOT \u662f\u4ec0\u4e48&#xff1f;<\/li>\n<li>3.3 PIC \u5982\u4f55\u901a\u8fc7 GOT \u8bbf\u95ee\u5916\u90e8\u5730\u5740<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001PLT&#xff1a;\u628a\u51fd\u6570\u7ed1\u5b9a\u63a8\u8fdf\u5230\u7b2c\u4e00\u6b21\u8c03\u7528<\/li>\n<li>\n<ul>\n<li>4.1 \u76f4\u63a5\u89c2\u5bdf &#096;puts&#064;plt&#096;<\/li>\n<li>4.2 PLT \u662f\u4ec0\u4e48&#xff1f;<\/li>\n<li>4.3 \u9996\u6b21\u8c03\u7528\u4e0e\u540e\u7eed\u8c03\u7528<\/li>\n<li>\n<ul>\n<li>\u7b2c\u4e00\u6b21\u8c03\u7528<\/li>\n<li>\u540e\u7eed\u8c03\u7528<\/li>\n<\/ul>\n<\/li>\n<li>4.4 \u5e93\u4e5f\u4f1a\u4f9d\u8d56\u5176\u4ed6\u5e93<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u9759\u6001\u94fe\u63a5\u3001\u88c5\u8f7d\u4e0e\u52a8\u6001\u94fe\u63a5\u7684\u5b8c\u6574\u6d41\u7a0b<\/li>\n<li>\n<ul>\n<li>5.1 \u7f16\u8bd1\u9636\u6bb5<\/li>\n<li>5.2 \u9759\u6001\u94fe\u63a5\u9636\u6bb5<\/li>\n<li>5.3 \u7a0b\u5e8f\u88c5\u8f7d\u9636\u6bb5<\/li>\n<li>5.4 \u52a8\u6001\u94fe\u63a5\u9636\u6bb5<\/li>\n<li>5.5 \u6b63\u5f0f\u6267\u884c<\/li>\n<\/ul>\n<\/li>\n<li>\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00<\/h2>\n<p>\u4e0a\u7bc7\u5df2\u7ecf\u8bf4\u660e\u591a\u4e2a .o \u5982\u4f55\u7ecf\u8fc7 Section \u5e03\u5c40\u3001\u7b26\u53f7\u89e3\u6790\u548c\u5730\u5740\u91cd\u5b9a\u4f4d\u5f62\u6210\u53ef\u6267\u884c\u7a0b\u5e8f\u3002\u4f46\u751f\u6210 ELF \u53ea\u662f\u7b2c\u4e00\u6b65&#xff0c;\u7a0b\u5e8f\u771f\u6b63\u8fd0\u884c\u4e4b\u524d&#xff0c;\u8fd8\u8981\u5b8c\u6210 Segment \u6620\u5c04\u3001\u52a8\u6001\u5e93\u88c5\u8f7d\u548c\u8fd0\u884c\u65f6\u5730\u5740\u4fee\u6b63\u3002<\/p>\n<p>\u8fd9\u4e00\u7bc7\u6cbf\u7740\u7a0b\u5e8f\u542f\u52a8\u8fc7\u7a0b\u7ee7\u7eed\u5206\u6790&#xff1a;<\/p>\n<ul>\n<li>\u78c1\u76d8\u4e2d\u7684 ELF \u4e3a\u4ec0\u4e48\u5df2\u7ecf\u5e26\u6709\u865a\u62df\u5730\u5740\u5e03\u5c40&#xff1b;<\/li>\n<li>Program Header Table \u5982\u4f55\u6307\u5bfc\u52a0\u8f7d\u5668\u5efa\u7acb\u5185\u5b58\u6620\u5c04&#xff1b;<\/li>\n<li>\u52a8\u6001\u5e93\u7684\u4ee3\u7801\u9875\u4e3a\u4ec0\u4e48\u80fd\u591f\u88ab\u591a\u4e2a\u8fdb\u7a0b\u5171\u4eab&#xff1b;<\/li>\n<li>PIC\u3001GOT \u548c PLT \u5982\u4f55\u89e3\u51b3\u88c5\u8f7d\u57fa\u5740\u4e0d\u56fa\u5b9a\u7684\u95ee\u9898&#xff1b;<\/li>\n<li>\u7b2c\u4e00\u6b21\u8c03\u7528\u52a8\u6001\u5e93\u51fd\u6570\u65f6&#xff0c;\u5ef6\u8fdf\u7ed1\u5b9a\u5177\u4f53\u7ecf\u8fc7\u54ea\u4e9b\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<p><font color=\"#1565C0\"><b>\u6838\u5fc3\u4e3b\u7ebf&#xff1a;Program Header Table \u51b3\u5b9a ELF \u600e\u6837\u88c5\u5165\u5185\u5b58&#xff0c;\u52a8\u6001\u94fe\u63a5\u5668\u518d\u901a\u8fc7\u91cd\u5b9a\u4f4d\u3001GOT \u4e0e PLT \u5b8c\u6210\u5171\u4eab\u5e93\u7b26\u53f7\u7684\u6700\u7ec8\u7ed1\u5b9a\u3002<\/b><\/font><\/p>\n<hr \/>\n<h2>\u4e00\u3001ELF \u88c5\u8f7d\u4e0e\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u7a7a\u95f4<\/h2>\n<h3>1.1 \u78c1\u76d8\u4e2d\u7684 ELF \u5df2\u7ecf\u5305\u542b\u5730\u5740\u5e03\u5c40<\/h3>\n<p>ELF \u5728\u78c1\u76d8\u4e2d\u5df2\u7ecf\u4fdd\u5b58\u865a\u62df\u5730\u5740\u5e03\u5c40\u6216\u76f8\u5bf9\u5e03\u5c40&#xff0c;\u4f46\u5c1a\u672a\u5360\u7528\u56fa\u5b9a\u7269\u7406\u5185\u5b58\u3002<\/p>\n<p>\u53cd\u6c47\u7f16\u53ef\u6267\u884c\u7a0b\u5e8f&#xff1a;<\/p>\n<p>objdump <span class=\"token parameter variable\">-d<\/span> main <span class=\"token operator\">|<\/span> <span class=\"token function\">less<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a661718ec41f.png\" alt=\"\u53cd\u6c47\u7f16\u4e2d\u5df2\u7ecf\u80fd\u591f\u770b\u5230\u865a\u62df\u5730\u5740\" \/><\/p>\n<p>\u6307\u4ee4\u5de6\u4fa7\u4f1a\u663e\u793a\u5730\u5740\u3002\u5b83\u4e0d\u662f\u7a0b\u5e8f\u5df2\u7ecf\u5360\u7528\u4e86\u67d0\u4e00\u5757\u56fa\u5b9a\u7269\u7406\u5185\u5b58&#xff0c;\u800c\u662f\u94fe\u63a5\u5668\u5199\u8fdb ELF \u7684\u865a\u62df\u5730\u5740\u5e03\u5c40&#xff0c;\u6216\u8005\u76f8\u5bf9\u4e8e\u88c5\u8f7d\u57fa\u5740\u7684\u5730\u5740\u5e03\u5c40\u3002<\/p>\n<p>\u73b0\u4ee3 Linux \u4e2d\u5e38\u89c1\u4e24\u79cd\u60c5\u51b5&#xff1a;<\/p>\n<table>\n<tr>ELF \u7c7b\u578b\u5e38\u89c1\u573a\u666f\u5730\u5740\u7279\u70b9<\/tr>\n<tbody>\n<tr>\n<td>ET_EXEC<\/td>\n<td>\u975e PIE \u53ef\u6267\u884c\u7a0b\u5e8f<\/td>\n<td>\u901a\u5e38\u6309\u7167\u8f83\u56fa\u5b9a\u7684\u94fe\u63a5\u865a\u62df\u5730\u5740\u88c5\u8f7d<\/td>\n<\/tr>\n<tr>\n<td>ET_DYN<\/td>\n<td>\u5171\u4eab\u5e93\u3001PIE \u53ef\u6267\u884c\u7a0b\u5e8f<\/td>\n<td>\u5185\u90e8\u5730\u5740\u901a\u5e38\u914d\u5408\u88c5\u8f7d\u57fa\u5740\u8ba1\u7b97&#xff0c;\u65b9\u4fbf\u5730\u5740\u968f\u673a\u5316<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u5c11\u73b0\u4ee3\u53d1\u884c\u7248\u9ed8\u8ba4\u751f\u6210 PIE&#xff0c;\u56e0\u6b64\u6267\u884c&#xff1a;<\/p>\n<p>readelf <span class=\"token parameter variable\">-h<\/span> main<\/p>\n<p>\u53ef\u80fd\u770b\u5230&#xff1a;<\/p>\n<p>Type: DYN (Position-Independent Executable file)<\/p>\n<p>\u8fd9\u5e76\u4e0d\u4ee3\u8868 main \u53d8\u6210\u4e86\u666e\u901a\u52a8\u6001\u5e93&#xff0c;\u800c\u662f\u8bf4\u660e\u5b83\u91c7\u7528\u4e86\u4e0e\u5171\u4eab\u5bf9\u8c61\u76f8\u4f3c\u7684\u4f4d\u7f6e\u65e0\u5173\u88c5\u8f7d\u65b9\u5f0f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141801-6a6617190cea4.png\" alt=\"ELF \u4e2d\u7684\u5730\u5740\u5e03\u5c40\" \/><\/p>\n<p><font color=\"#1565C0\"><b>\u78c1\u76d8\u4e0a\u7684 ELF \u4fdd\u5b58\u7684\u662f\u865a\u62df\u5730\u5740\u5e03\u5c40\u6216\u76f8\u5bf9\u5e03\u5c40\u3002\u7269\u7406\u5185\u5b58\u5730\u5740\u53ea\u6709\u7a0b\u5e8f\u771f\u6b63\u8fd0\u884c\u3001\u9875\u9762\u88ab\u8c03\u5165\u4ee5\u540e\u624d\u4f1a\u786e\u5b9a\u3002<\/b><\/font><\/p>\n<hr \/>\n<h3>1.2 Program Header Table \u5c31\u662f\u88c5\u8f7d\u8ba1\u5212<\/h3>\n<p>\u5f53\u5185\u6838\u51c6\u5907\u6267\u884c ELF \u65f6&#xff0c;\u4e0d\u9700\u8981\u9010\u4e2a\u5173\u5fc3\u6240\u6709 Section\u3002\u5b83\u4e3b\u8981\u8bfb\u53d6 ELF Header \u548c Program Header Table\u3002<\/p>\n<p>\u6bcf\u4e00\u4e2a\u53ef\u88c5\u8f7d\u7684 PT_LOAD \u90fd\u63cf\u8ff0\u4e86\u4e00\u5757\u6620\u5c04\u5173\u7cfb&#xff1a;<\/p>\n<p>\u6587\u4ef6 offset \u5f00\u59cb\u7684\u4e00\u6bb5\u6570\u636e<br \/>\n        \u2193<br \/>\n\u6620\u5c04\u5230\u8fdb\u7a0b\u865a\u62df\u5730\u5740 vaddr<br \/>\n        \u2193<br \/>\n\u8bbe\u7f6e R\/W\/X \u6743\u9650<\/p>\n<p>\u8fd9\u4efd\u4fe1\u606f\u4f1a\u5e2e\u52a9\u5185\u6838\u5efa\u7acb\u8fdb\u7a0b\u7684\u865a\u62df\u5185\u5b58\u533a\u57df\u3002<\/p>\n<p>\u4ece\u6982\u5ff5\u4e0a\u770b&#xff0c;\u5185\u6838\u4f1a\u6839\u636e Segment \u63cf\u8ff0\u521b\u5efa\u7c7b\u4f3c\u4e0b\u9762\u7684\u533a\u57df&#xff1a;<\/p>\n<ul>\n<li>\u4ee3\u7801\u548c\u53ea\u8bfb\u533a\u57df&#xff1b;<\/li>\n<li>\u53ef\u5199\u6570\u636e\u533a\u57df&#xff1b;<\/li>\n<li>BSS \u5bf9\u5e94\u7684\u96f6\u586b\u5145\u533a\u57df&#xff1b;<\/li>\n<li>\u540e\u7eed\u8fd8\u4f1a\u5efa\u7acb\u6808\u3001\u5806\u3001\u5171\u4eab\u5e93\u6620\u5c04\u7b49\u533a\u57df\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>1.3 ELF Segment \u5982\u4f55\u521d\u59cb\u5316 VMA<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141801-6a661719575c7.png\" alt=\"ELF Segment \u521d\u59cb\u5316\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\" \/><\/p>\n<p>\u521b\u5efa\u65b0\u8fdb\u7a0b\u6620\u50cf\u65f6&#xff0c;\u5185\u6838\u4f1a\u8bfb\u53d6 ELF \u7684 Program Header Table&#xff0c;\u6839\u636e\u5404\u4e2a PT_LOAD \u7684&#xff1a;<\/p>\n<ul>\n<li>\u8d77\u59cb\u865a\u62df\u5730\u5740&#xff1b;<\/li>\n<li>\u957f\u5ea6&#xff1b;<\/li>\n<li>\u6587\u4ef6\u504f\u79fb&#xff1b;<\/li>\n<li>\u8bbf\u95ee\u6743\u9650&#xff1b;<\/li>\n<\/ul>\n<p>\u5efa\u7acb\u8fdb\u7a0b\u7684\u865a\u62df\u5185\u5b58\u533a\u57df&#xff0c;\u4e5f\u5c31\u662f VMA\u3002Linux \u5185\u6838\u4e2d&#xff0c;\u8fd9\u4e9b\u533a\u57df\u7531 mm_struct \u5173\u8054\u548c\u7ba1\u7406\u3002<\/p>\n<p>\u8fd9\u5e76\u4e0d\u8868\u793a&#xff1a;<\/p>\n<p>\u7a0b\u5e8f\u542f\u52a8\u7684\u4e00\u77ac\u95f4&#xff0c;\u5185\u6838\u5df2\u7ecf\u628a ELF \u6bcf\u4e00\u9875\u5168\u90e8\u590d\u5236\u8fdb\u7269\u7406\u5185\u5b58&#xff0c;\u5e76\u628a\u6240\u6709\u9875\u8868\u4e00\u6b21\u6027\u586b\u5b8c\u3002<\/p>\n<p>\u66f4\u5e38\u89c1\u7684\u65b9\u5f0f\u662f\u6309\u9700\u8c03\u9875&#xff1a;<\/p>\n<li>\u5148\u5efa\u7acb\u865a\u62df\u5730\u5740\u533a\u57df\u548c\u6587\u4ef6\u6620\u5c04\u5173\u7cfb&#xff1b;<\/li>\n<li>CPU \u7b2c\u4e00\u6b21\u8bbf\u95ee\u5c1a\u672a\u88c5\u5165\u7684\u9875\u9762\u65f6\u89e6\u53d1\u7f3a\u9875\u5f02\u5e38&#xff1b;<\/li>\n<li>\u5185\u6838\u518d\u628a\u5bf9\u5e94\u6587\u4ef6\u9875\u8c03\u5165\u7269\u7406\u5185\u5b58&#xff1b;<\/li>\n<li>\u66f4\u65b0\u9875\u8868\u540e\u91cd\u65b0\u6267\u884c\u539f\u6307\u4ee4\u3002<\/li>\n<p>\u8fd9\u6837\u7a0b\u5e8f\u6ca1\u6709\u771f\u6b63\u8bbf\u95ee\u7684\u4ee3\u7801\u548c\u6570\u636e&#xff0c;\u5c31\u4e0d\u5fc5\u63d0\u524d\u5360\u7528\u7269\u7406\u5185\u5b58\u3002<\/p>\n<hr \/>\n<h3>1.4 CR3\u3001MMU \u4e0e\u865a\u62df\u5730\u5740\u7ffb\u8bd1<\/h3>\n<p>\u5728 x86-64 \u5e73\u53f0\u4e0a&#xff0c;\u4e09\u8005\u7684\u5173\u7cfb\u5982\u4e0b&#xff1a;<\/p>\n<ul>\n<li>CR3 \u5bc4\u5b58\u5668&#xff1a;\u4fdd\u5b58\u5f53\u524d\u5730\u5740\u7a7a\u95f4\u9875\u8868\u6839\u7ed3\u6784\u7684\u7269\u7406\u5730\u5740&#xff1b;<\/li>\n<li>MMU&#xff1a;\u8d1f\u8d23\u628a CPU \u4f7f\u7528\u7684\u865a\u62df\u5730\u5740\u7ffb\u8bd1\u4e3a\u7269\u7406\u5730\u5740&#xff1b;<\/li>\n<li>\u9875\u8868\u9879\u6743\u9650&#xff1a;\u63a7\u5236\u67d0\u4e00\u9875\u662f\u5426\u53ef\u8bfb\u3001\u53ef\u5199\u3001\u53ef\u6267\u884c\u4ee5\u53ca\u662f\u5426\u5141\u8bb8\u7528\u6237\u6001\u8bbf\u95ee\u3002<\/li>\n<\/ul>\n<p>MMU \u4e0d\u53ea\u8d1f\u8d23\u5730\u5740\u7ffb\u8bd1&#xff0c;\u8fd8\u4f1a\u68c0\u67e5\u6743\u9650\u3002\u5f53\u7a0b\u5e8f\u8bd5\u56fe\u5411\u53ea\u8bfb\u9875\u9762\u5199\u5165\u6570\u636e&#xff0c;\u6216\u8005\u6267\u884c\u4e0d\u53ef\u6267\u884c\u9875\u9762\u4e2d\u7684\u5185\u5bb9\u65f6&#xff0c;\u5c31\u53ef\u80fd\u89e6\u53d1\u5f02\u5e38\u3002<\/p>\n<p><font color=\"#EF6C00\"><b>\u7a0b\u5e8f\u8fd0\u884c\u65f6&#xff0c;\u6307\u4ee4\u91cc\u4f7f\u7528\u7684\u662f\u865a\u62df\u5730\u5740\u3002\u771f\u6b63\u8bbf\u95ee\u5185\u5b58\u6761\u524d&#xff0c;\u518d\u7531 MMU \u548c\u9875\u8868\u5b8c\u6210\u5730\u5740\u8f6c\u6362\u3002<\/b><\/font><\/p>\n<hr \/>\n<h3>1.5 ELF \u5165\u53e3\u4e0e\u7a0b\u5e8f\u542f\u52a8\u987a\u5e8f<\/h3>\n<p>ELF Header \u4e2d\u6709\u4e00\u4e2a\u5b57\u6bb5&#xff1a;<\/p>\n<p>Entry point address<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141801-6a661719afb44.png\" alt=\"ELF Header \u4e2d\u8bb0\u5f55\u7a0b\u5e8f\u5165\u53e3\u5730\u5740\" \/><\/p>\n<p>\u5bf9\u4e8e\u4e00\u4e2a\u7b80\u5355\u7a0b\u5e8f&#xff0c;\u5165\u53e3\u901a\u5e38\u4e0d\u662f main&#xff0c;\u800c\u662f _start\u3002<\/p>\n<p>\u5728 x86-64 \u4e2d&#xff0c;\u4e0b\u4e00\u6761\u6307\u4ee4\u5730\u5740\u7531 RIP \u5bc4\u5b58\u5668\u8868\u793a&#xff1b;32 \u4f4d x86 \u4e2d\u5bf9\u5e94\u7684\u662f EIP\u3002\u5185\u6838\u5b8c\u6210\u88c5\u8f7d\u51c6\u5907\u540e&#xff0c;\u4f1a\u8ba9 CPU \u4ece\u76f8\u5e94\u5165\u53e3\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141801-6a661719c2a76.png\" alt=\"ELF \u5165\u53e3\u4e0e\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\u5173\u7cfb\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141802-6a66171a42fcc.png\" alt=\"\u4ece\u7a0b\u5e8f\u5165\u53e3\u8fdb\u5165 C \u8fd0\u884c\u65f6\u521d\u59cb\u5316\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141802-6a66171a55f77.png\" alt=\"\u6700\u7ec8\u8fdb\u5165 main \u51fd\u6570\" \/><\/p>\n<p>\u52a8\u6001\u94fe\u63a5\u7a0b\u5e8f\u7684\u5178\u578b\u542f\u52a8\u987a\u5e8f\u5982\u4e0b&#xff1a;<\/p>\n<li>\u5185\u6838\u68c0\u67e5 ELF Magic \u548c\u57fa\u672c\u683c\u5f0f&#xff1b;<\/li>\n<li>\u6839\u636e PT_LOAD \u6620\u5c04\u4e3b\u7a0b\u5e8f&#xff1b;<\/li>\n<li>\u8bfb\u53d6 PT_INTERP&#xff0c;\u627e\u5230\u52a8\u6001\u94fe\u63a5\u5668&#xff0c;\u4f8b\u5982 ld-linux-x86-64.so.2&#xff1b;<\/li>\n<li>\u6620\u5c04\u5e76\u542f\u52a8\u52a8\u6001\u94fe\u63a5\u5668&#xff1b;<\/li>\n<li>\u52a8\u6001\u94fe\u63a5\u5668\u52a0\u8f7d\u4f9d\u8d56\u5e93\u3001\u8fdb\u884c\u7b26\u53f7\u89e3\u6790\u548c\u5fc5\u8981\u7684\u8fd0\u884c\u65f6\u91cd\u5b9a\u4f4d&#xff1b;<\/li>\n<li>\u52a8\u6001\u94fe\u63a5\u5668\u628a\u63a7\u5236\u6743\u4ea4\u7ed9\u4e3b\u7a0b\u5e8f\u5165\u53e3 _start&#xff1b;<\/li>\n<li>_start \u51c6\u5907\u53c2\u6570\u5e76\u8c03\u7528 __libc_start_main&#xff1b;<\/li>\n<li>C \u8fd0\u884c\u65f6\u5b8c\u6210\u521d\u59cb\u5316\u540e\u8c03\u7528 main&#xff1b;<\/li>\n<li>main \u8fd4\u56de\u540e&#xff0c;\u7531\u8fd0\u884c\u65f6\u5b8c\u6210\u9000\u51fa\u548c\u6e05\u7406\u3002<\/li>\n<p><font color=\"#C62828\"><b>\u6ce8\u610f&#xff1a;<\/b><\/font>\u4e0d\u662f _start \u5148\u8c03\u7528\u52a8\u6001\u94fe\u63a5\u5668\u3002\u5bf9\u4e8e\u52a8\u6001\u94fe\u63a5\u7a0b\u5e8f&#xff0c;\u52a8\u6001\u94fe\u63a5\u5668\u901a\u5e38\u5728\u4e3b\u7a0b\u5e8f _start \u4e4b\u524d\u5c31\u5df2\u7ecf\u83b7\u5f97\u63a7\u5236\u6743\u5e76\u5b8c\u6210\u4e3b\u8981\u88c5\u8f7d\u5de5\u4f5c\u3002<\/p>\n<hr \/>\n<h2>\u4e8c\u3001\u52a8\u6001\u5e93\u6620\u5c04\u4e0e\u8fdb\u7a0b\u95f4\u5171\u4eab<\/h2>\n<h3>2.1 \u52a8\u6001\u5e93\u7684\u6587\u4ef6\u5c5e\u6027\u4e0e\u6620\u5c04<\/h3>\n<p>\u9759\u6001\u5e93\u53c2\u4e0e\u94fe\u63a5\u540e&#xff0c;\u6240\u9700\u4ee3\u7801\u5df2\u7ecf\u8fdb\u5165\u6700\u7ec8\u53ef\u6267\u884c\u6587\u4ef6&#xff1b;\u52a8\u6001\u5e93\u5219\u5fc5\u987b\u5728\u8fd0\u884c\u65f6\u7ee7\u7eed\u5b58\u5728\u3002<\/p>\n<p>\u8981\u8ba9\u7a0b\u5e8f\u4f7f\u7528\u4e00\u4e2a .so&#xff0c;\u81f3\u5c11\u8981\u5b8c\u6210\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u8ba9\u8fdb\u7a0b\u770b\u5230\u5b83&#xff1a;\u628a\u52a8\u6001\u5e93\u5bf9\u5e94\u7684\u6587\u4ef6\u533a\u57df\u6620\u5c04\u8fdb\u5f53\u524d\u8fdb\u7a0b\u7684\u865a\u62df\u5730\u5740\u7a7a\u95f4&#xff1b;<\/li>\n<li>\u8ba9\u8fdb\u7a0b\u8c03\u7528\u5b83&#xff1a;\u89e3\u51b3\u51fd\u6570\u548c\u5168\u5c40\u53d8\u91cf\u7684\u5730\u5740\u5f15\u7528&#xff0c;\u4f7f\u63a7\u5236\u6d41\u80fd\u591f\u8df3\u8f6c\u5230\u5e93\u4ee3\u7801\u3002<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141802-6a66171a68407.png\" alt=\"\u52a8\u6001\u5e93\u6620\u5c04\u5230\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\" \/><\/p>\n<p>\u52a8\u6001\u5e93\u672c\u8eab\u4e5f\u662f ELF&#xff0c;\u52a8\u6001\u94fe\u63a5\u5668\u540c\u6837\u4f1a\u8bfb\u53d6\u5b83\u7684 Program Header Table&#xff0c;\u628a\u9700\u8981\u7684 Segment \u6620\u5c04\u8fdb\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\u3002<\/p>\n<hr \/>\n<h3>2.2 \u52a8\u6001\u5e93\u4ee3\u7801\u9875\u7684\u8fdb\u7a0b\u95f4\u5171\u4eab<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141802-6a66171ab3dfb.png\" alt=\"\u591a\u4e2a\u8fdb\u7a0b\u5171\u4eab\u52a8\u6001\u5e93\u4ee3\u7801\u9875\" \/><\/p>\n<p>\u5b9e\u9645\u60c5\u51b5\u662f&#xff1a;<\/p>\n<ul>\n<li>\u52a8\u6001\u5e93\u4e2d\u53ea\u8bfb\u3001\u53ef\u6267\u884c\u7684\u4ee3\u7801\u9875\u53ef\u4ee5\u7531\u591a\u4e2a\u8fdb\u7a0b\u5171\u4eab\u540c\u4e00\u6279\u7269\u7406\u9875&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u8fdb\u7a0b\u90fd\u6709\u81ea\u5df1\u7684\u865a\u62df\u5730\u5740\u6620\u5c04&#xff1b;<\/li>\n<li>\u53ef\u5199\u6570\u636e\u9875\u901a\u5e38\u4e0d\u80fd\u76f4\u63a5\u88ab\u6240\u6709\u8fdb\u7a0b\u5171\u4eab\u4fee\u6539&#xff0c;\u800c\u662f\u6bcf\u4e2a\u8fdb\u7a0b\u62e5\u6709\u81ea\u5df1\u7684\u79c1\u6709\u6620\u5c04&#xff0c;\u5fc5\u8981\u65f6\u901a\u8fc7\u5199\u65f6\u62f7\u8d1d\u5206\u79bb&#xff1b;<\/li>\n<li>GOT \u7b49\u8fd0\u884c\u65f6\u9700\u8981\u4fee\u6539\u7684\u5185\u5bb9&#xff0c;\u4e5f\u662f\u8fdb\u7a0b\u79c1\u6709\u7684\u3002<\/li>\n<\/ul>\n<p>\u52a8\u6001\u5e93\u8282\u7701\u5185\u5b58\u7684\u5173\u952e\u5728\u4e8e&#xff1a;<\/p>\n<p><font color=\"#2E7D32\"><b>\u4e0d\u540c\u8fdb\u7a0b\u53ef\u4ee5\u5171\u4eab\u540c\u4e00\u4efd\u53ea\u8bfb\u5e93\u4ee3\u7801&#xff0c;\u800c\u4e0d\u5fc5\u5728\u6bcf\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u90fd\u9759\u6001\u585e\u5165\u4e00\u4efd\u76f8\u540c\u5b9e\u73b0\u3002<\/b><\/font><\/p>\n<p>\u9759\u6001\u94fe\u63a5\u65f6&#xff0c;\u540c\u4e00\u5957\u5e93\u4ee3\u7801\u4f1a\u8fdb\u5165\u4e0d\u540c\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5b83\u4eec\u6210\u4e3a\u4e0d\u540c\u6587\u4ef6\u4e2d\u7684\u4ee3\u7801\u9875&#xff0c;\u901a\u5e38\u4e0d\u80fd\u50cf\u540c\u4e00\u4e2a .so \u7684\u6587\u4ef6\u6620\u5c04\u9875\u90a3\u6837\u81ea\u7136\u5171\u4eab\u3002<\/p>\n<hr \/>\n<h3>2.3 \u4f7f\u7528 ldd \u67e5\u770b\u52a8\u6001\u4f9d\u8d56<\/h3>\n<p>ldd .\/main<\/p>\n<p>\u53ef\u80fd\u770b\u5230&#xff1a;<\/p>\n<p>linux-vdso.so.1<br \/>\nlibc.so.6 &#061;&gt; \/lib64\/libc.so.6<br \/>\n\/lib64\/ld-linux-x86-64.so.2<\/p>\n<p>libc.so.6 \u63d0\u4f9b C \u8fd0\u884c\u5e93\u51fd\u6570&#xff1b;ld-linux-x86-64.so.2 \u662f\u7528\u6237\u6001\u52a8\u6001\u94fe\u63a5\u5668&#xff0c;\u4e5f\u5e38\u88ab\u79f0\u4e3a ELF interpreter\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141803-6a66171b25f11.png\" alt=\"\u7a0b\u5e8f\u4f9d\u8d56\u52a8\u6001\u94fe\u63a5\u5668\u548c\u5171\u4eab\u5e93\" \/><\/p>\n<p>\u52a8\u6001\u94fe\u63a5\u5668\u8d1f\u8d23&#xff1a;<\/p>\n<ul>\n<li>\u627e\u5230\u7a0b\u5e8f\u4f9d\u8d56\u7684 .so&#xff1b;<\/li>\n<li>\u9012\u5f52\u5904\u7406\u5e93\u4e4b\u95f4\u7684\u4f9d\u8d56&#xff1b;<\/li>\n<li>\u6620\u5c04\u5404\u4e2a\u5171\u4eab\u5bf9\u8c61&#xff1b;<\/li>\n<li>\u89e3\u6790\u52a8\u6001\u7b26\u53f7&#xff1b;<\/li>\n<li>\u6267\u884c\u8fd0\u884c\u65f6\u91cd\u5b9a\u4f4d&#xff1b;<\/li>\n<li>\u5904\u7406 GOT\u3001PLT&#xff1b;<\/li>\n<li>\u6700\u540e\u628a\u63a7\u5236\u6743\u4ea4\u7ed9\u4e3b\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u52a8\u6001\u5e93\u641c\u7d22\u8def\u5f84\u3001LD_LIBRARY_PATH\u3001ld.so.conf.d \u548c ldconfig \u5df2\u7ecf\u5728\u4e0a\u4e00\u7bc7\u505a\u8fc7\u5b9e\u9a8c&#xff0c;\u8fd9\u91cc\u4e0d\u518d\u91cd\u590d\u5c55\u5f00\u3002<\/p>\n<hr \/>\n<h3>2.4 \u4f4d\u7f6e\u65e0\u5173\u4ee3\u7801\u4e0e\u88c5\u8f7d\u57fa\u5740<\/h3>\n<p>\u5730\u5740\u7a7a\u95f4\u968f\u673a\u5316\u5f00\u542f\u540e&#xff0c;\u540c\u4e00\u4e2a\u52a8\u6001\u5e93\u5728\u4e0d\u540c\u8fdb\u7a0b\u4e2d\u7684\u865a\u62df\u8d77\u59cb\u5730\u5740\u53ef\u80fd\u4e0d\u540c\u3002<\/p>\n<p>\u52a8\u6001\u5e93\u4e0d\u80fd\u5047\u8bbe\u81ea\u5df1\u6c38\u8fdc\u4ece\u67d0\u4e2a\u56fa\u5b9a\u7edd\u5bf9\u5730\u5740\u5f00\u59cb&#xff0c;\u5426\u5219\u6362\u4e00\u4e2a\u88c5\u8f7d\u4f4d\u7f6e&#xff0c;\u5185\u90e8\u5f15\u7528\u5c31\u4f1a\u5168\u90e8\u5931\u6548\u3002<\/p>\n<p>\u56e0\u6b64\u5171\u4eab\u5e93\u901a\u5e38\u4f7f\u7528\u4f4d\u7f6e\u65e0\u5173\u4ee3\u7801&#xff08;PIC&#xff09;&#xff1a;<\/p>\n<p>gcc <span class=\"token parameter variable\">-fPIC<\/span> <span class=\"token parameter variable\">-c<\/span> source.c<br \/>\ngcc <span class=\"token parameter variable\">-shared<\/span> <span class=\"token parameter variable\">-o<\/span> libdemo.so source.o<\/p>\n<p>\u67e5\u770b\u52a8\u6001\u5e93\u53cd\u6c47\u7f16&#xff1a;<\/p>\n<p><span class=\"token comment\"># Ubuntu \u793a\u4f8b<\/span><br \/>\nobjdump <span class=\"token parameter variable\">-d<\/span> \/lib\/x86_64-linux-gnu\/libc.so.6 <span class=\"token operator\">|<\/span> <span class=\"token function\">less<\/span><\/p>\n<p><span class=\"token comment\"># CentOS \u793a\u4f8b\u8def\u5f84\u53ef\u80fd\u4e0d\u540c<\/span><br \/>\nobjdump <span class=\"token parameter variable\">-d<\/span> \/lib64\/libc.so.6 <span class=\"token operator\">|<\/span> <span class=\"token function\">less<\/span><\/p>\n<p>\u52a8\u6001\u5e93\u51fd\u6570\u7684\u8fd0\u884c\u65f6\u5730\u5740\u6ee1\u8db3&#xff1a;<\/p>\n<p>\u51fd\u6570\u8fd0\u884c\u65f6\u5730\u5740 &#061; \u52a8\u6001\u5e93\u88c5\u8f7d\u57fa\u5740 &#043; \u51fd\u6570\u5728\u5e93\u5185\u7684\u504f\u79fb\u91cf<\/p>\n<p>\u7f16\u8bd1\u5668\u3001\u94fe\u63a5\u5668\u548c\u52a8\u6001\u94fe\u63a5\u5668\u4f1a\u901a\u8fc7 PC \u76f8\u5bf9\u5bfb\u5740\u3001GOT \u4e0e PLT \u5b8c\u6210\u8fd9\u7c7b\u5730\u5740\u8ba1\u7b97\u3002<\/p>\n<hr \/>\n<h3>2.5 \u52a8\u6001\u5e93\u6620\u5c04\u5230\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141803-6a66171b4b4b1.png\" alt=\"\u52a8\u6001\u5e93\u6587\u4ef6\u3001\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4\u548c\u7269\u7406\u5185\u5b58\u4e4b\u95f4\u7684\u6620\u5c04\" \/><\/p>\n<p>\u52a8\u6001\u94fe\u63a5\u5668\u627e\u5230\u5e93\u6587\u4ef6\u540e&#xff0c;\u4f1a\u6839\u636e\u5b83\u7684 PT_LOAD \u5efa\u7acb\u6587\u4ef6\u6620\u5c04&#xff1a;<\/p>\n<ul>\n<li>\u5e93\u7684\u4ee3\u7801 Segment \u6620\u5c04\u4e3a\u53ea\u8bfb\u3001\u53ef\u6267\u884c&#xff1b;<\/li>\n<li>\u53ea\u8bfb\u6570\u636e\u6620\u5c04\u4e3a\u53ea\u8bfb&#xff1b;<\/li>\n<li>\u53ef\u5199\u6570\u636e\u6620\u5c04\u4e3a\u53ef\u8bfb\u5199&#xff1b;<\/li>\n<li>BSS \u5bf9\u5e94\u8303\u56f4\u5728\u5185\u5b58\u4e2d\u8865\u96f6&#xff1b;<\/li>\n<li>\u52a8\u6001\u94fe\u63a5\u9700\u8981\u7684\u8868\u9879\u4e5f\u6620\u5c04\u8fdb\u5f53\u524d\u8fdb\u7a0b\u3002<\/li>\n<\/ul>\n<p>\u867d\u7136\u4e0d\u540c\u8fdb\u7a0b\u4e2d\u5171\u4eab\u5e93\u7684\u865a\u62df\u5730\u5740\u53ef\u80fd\u4e0d\u540c&#xff0c;\u4f46\u5b83\u4eec\u7684\u865a\u62df\u9875\u53ef\u4ee5\u6307\u5411\u540c\u4e00\u6279\u53ea\u8bfb\u7269\u7406\u9875\u3002<\/p>\n<hr \/>\n<h3>2.6 \u5916\u90e8\u51fd\u6570\u8c03\u7528\u7684\u5b9a\u4f4d\u6761\u4ef6<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141803-6a66171b96ac5.png\" alt=\"\u4ece\u4e3b\u7a0b\u5e8f\u4ee3\u7801\u533a\u8df3\u8f6c\u5230\u5171\u4eab\u5e93\u4ee3\u7801\" \/><\/p>\n<p>\u7a0b\u5e8f\u8c03\u7528\u4e00\u4e2a\u5916\u90e8\u51fd\u6570\u65f6&#xff0c;\u81f3\u5c11\u5df2\u7ecf\u5177\u5907&#xff1a;<\/p>\n<ul>\n<li>\u8be5\u52a8\u6001\u5e93\u5df2\u7ecf\u6620\u5c04\u8fdb\u5f53\u524d\u8fdb\u7a0b&#xff1b;<\/li>\n<li>\u52a8\u6001\u94fe\u63a5\u5668\u77e5\u9053\u5e93\u7684\u88c5\u8f7d\u57fa\u5740&#xff1b;<\/li>\n<li>\u52a8\u6001\u7b26\u53f7\u8868\u4e2d\u80fd\u591f\u627e\u5230\u51fd\u6570\u5bf9\u5e94\u7684\u7b26\u53f7&#xff1b;<\/li>\n<li>\u91cd\u5b9a\u4f4d\u8bb0\u5f55\u8bf4\u660e\u4e86\u7a0b\u5e8f\u4e2d\u54ea\u4e9b\u4f4d\u7f6e\u9700\u8981\u4f7f\u7528\u8fd9\u4e2a\u7b26\u53f7\u3002<\/li>\n<\/ul>\n<p>\u7406\u8bba\u4e0a&#xff0c;\u53ea\u8981\u5f97\u5230\u201c\u5e93\u57fa\u5740 &#043; \u51fd\u6570\u504f\u79fb\u201d&#xff0c;\u5c31\u80fd\u5b9a\u4f4d\u5e93\u51fd\u6570\u3002\u4f46\u4ee3\u7801\u533a\u901a\u5e38\u53ea\u8bfb&#xff0c;\u800c\u4e14\u52a8\u6001\u5e93\u5730\u5740\u6bcf\u6b21\u8fd0\u884c\u53ef\u80fd\u53d8\u5316&#xff0c;\u4e0d\u80fd\u7b80\u5355\u5730\u628a\u6240\u6709\u7edd\u5bf9\u5730\u5740\u786c\u5199\u8fdb .text\u3002<\/p>\n<p>\u56e0\u6b64\u8fd8\u9700\u8981 GOT \u4e0e PLT \u5904\u7406\u8fd0\u884c\u65f6\u5730\u5740\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u3001GOT&#xff1a;\u4e0d\u4fee\u6539\u53ea\u8bfb\u4ee3\u7801&#xff0c;\u4e5f\u80fd\u4fee\u6b63\u8fd0\u884c\u65f6\u5730\u5740<\/h2>\n<h3>3.1 \u5c06\u53ef\u53d8\u5730\u5740\u4ece .text \u4e2d\u5206\u79bb<\/h3>\n<p>\u7a0b\u5e8f\u542f\u52a8\u540e\u624d\u80fd\u786e\u5b9a puts \u7684\u771f\u5b9e\u5730\u5740&#xff0c;\u4f46\u4e0d\u80fd\u76f4\u63a5\u6539\u5199\u8c03\u7528\u6307\u4ee4&#xff1a;<\/p>\n<p>\u628a\u8c03\u7528\u6307\u4ee4\u4e2d\u7684\u5730\u5740\u6539\u6210 puts \u7684\u771f\u5b9e\u5730\u5740\u3002<\/p>\n<p>\u4f46\u8fd9\u6837\u4f1a\u5e26\u6765\u51e0\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>.text \u901a\u5e38\u53ea\u8bfb\u3001\u53ef\u6267\u884c&#xff0c;\u4e0d\u5141\u8bb8\u666e\u901a\u5199\u5165&#xff1b;<\/li>\n<li>\u4fee\u6539\u4ee3\u7801\u9875\u4f1a\u7834\u574f\u591a\u4e2a\u8fdb\u7a0b\u5171\u4eab\u540c\u4e00\u4efd\u53ea\u8bfb\u4ee3\u7801\u7684\u80fd\u529b&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u8fdb\u7a0b\u4e2d\u52a8\u6001\u5e93\u5730\u5740\u53ef\u80fd\u4e0d\u540c&#xff0c;\u4fee\u6539\u7ed3\u679c\u4e5f\u4e0d\u540c\u3002<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u52a8\u6001\u94fe\u63a5\u628a\u9700\u8981\u53d8\u5316\u7684\u5730\u5740\u653e\u5230\u5355\u72ec\u7684\u6570\u636e\u8868\u4e2d&#xff0c;\u800c\u4e0d\u662f\u53cd\u590d\u4fee\u6539\u4ee3\u7801\u6307\u4ee4\u3002<\/p>\n<hr \/>\n<h3>3.2 GOT \u662f\u4ec0\u4e48&#xff1f;<\/h3>\n<p>GOT \u5168\u79f0\u4e3a Global Offset Table&#xff0c;\u5168\u5c40\u504f\u79fb\u8868\u3002<\/p>\n<p>GOT \u662f\u5f53\u524d ELF \u6a21\u5757\u7684\u8fd0\u884c\u65f6\u5730\u5740\u8868\u3002\u7a0b\u5e8f\u6216\u52a8\u6001\u5e93\u5f15\u7528\u5916\u90e8\u51fd\u6570\u3001\u5916\u90e8\u5168\u5c40\u53d8\u91cf\u65f6&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u5bf9\u5e94\u8868\u9879\u53d6\u5f97\u6700\u7ec8\u5730\u5740\u3002<\/p>\n<p>\u67e5\u770b .got&#xff1a;<\/p>\n<p>readelf <span class=\"token parameter variable\">-S<\/span> a.out<\/p>\n<p>\u53ef\u80fd\u770b\u5230&#xff1a;<\/p>\n<p>[24] .got PROGBITS &#8230; WA &#8230;<\/p>\n<p>\u7ee7\u7eed\u67e5\u770b\u5b83\u6240\u5728\u7684 Segment&#xff1a;<\/p>\n<p>readelf <span class=\"token parameter variable\">-l<\/span> a.out<\/p>\n<p>\u5e38\u89c1\u6620\u5c04\u4e2d&#xff0c;.got \u4f1a\u4e0e .data\u3001.bss \u7b49\u4e00\u8d77\u8fdb\u5165\u53ef\u5199\u7684 LOAD Segment\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141804-6a66171c034d7.png\" alt=\"GOT \u4f4d\u4e8e\u53ef\u4fee\u6539\u7684\u6570\u636e\u6620\u5c04\u4e2d\" \/><\/p>\n<p><font color=\"#C62828\"><b>GOT \u662f\u72ec\u7acb\u7684 Section&#xff0c;\u4e0d\u7b49\u4e8e .data\u3002<\/b><\/font>\u53ea\u662f\u5728\u88c5\u8f7d\u89c6\u89d2\u4e0b&#xff0c;\u5b83\u5e38\u4e0e\u5176\u4ed6\u53ef\u5199 Section \u88ab\u7ec4\u7ec7\u8fdb\u540c\u4e00\u4e2a Segment\u3002<\/p>\n<p>\u52a8\u6001\u94fe\u63a5\u5668\u6267\u884c\u91cd\u5b9a\u4f4d\u65f6&#xff0c;\u4f1a\u628a\u7b26\u53f7\u7684\u771f\u5b9e\u8fd0\u884c\u65f6\u5730\u5740\u5199\u5165\u76f8\u5e94 GOT \u8868\u9879\u3002<\/p>\n<hr \/>\n<h3>3.3 PIC \u5982\u4f55\u901a\u8fc7 GOT \u8bbf\u95ee\u5916\u90e8\u5730\u5740<\/h3>\n<p>\u5728\u5355\u4e2a ELF \u6a21\u5757\u5185\u90e8&#xff0c;.text \u4e0e .got \u7684\u76f8\u5bf9\u4f4d\u7f6e\u5728\u94fe\u63a5\u5b8c\u6210\u540e\u662f\u786e\u5b9a\u7684\u3002<\/p>\n<p>\u56e0\u6b64\u4ee3\u7801\u53ef\u4ee5\u4f7f\u7528 RIP \u76f8\u5bf9\u5bfb\u5740\u627e\u5230 GOT&#xff0c;\u518d\u901a\u8fc7 GOT \u8868\u9879\u95f4\u63a5\u53d6\u5f97\u76ee\u6807\u5730\u5740&#xff1a;<\/p>\n<p>\u5f53\u524d\u6307\u4ee4\u4f4d\u7f6e<br \/>\n    \u2193  \u76f8\u5bf9\u5bfb\u5740<br \/>\nGOT \u8868\u9879<br \/>\n    \u2193  \u8bfb\u53d6\u8fd0\u884c\u65f6\u5730\u5740<br \/>\n\u771f\u5b9e\u51fd\u6570\u6216\u5168\u5c40\u53d8\u91cf<\/p>\n<p>\u8fd9\u5e26\u6765\u51e0\u4e2a\u597d\u5904&#xff1a;<\/p>\n<li>.text \u4e0d\u9700\u8981\u6839\u636e\u6bcf\u6b21\u88c5\u8f7d\u4f4d\u7f6e\u88ab\u6539\u5199&#xff1b;<\/li>\n<li>\u53ea\u8bfb\u4ee3\u7801\u9875\u53ef\u4ee5\u5728\u591a\u4e2a\u8fdb\u7a0b\u4e4b\u95f4\u5171\u4eab&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u8fdb\u7a0b\u62e5\u6709\u81ea\u5df1\u7684\u53ef\u5199 GOT \u6620\u5c04&#xff0c;\u53ef\u4ee5\u4fdd\u5b58\u672c\u8fdb\u7a0b\u4e2d\u7684\u771f\u5b9e\u5730\u5740&#xff1b;<\/li>\n<li>\u52a8\u6001\u5e93\u88ab\u653e\u5230\u4e0d\u540c\u57fa\u5740\u65f6\u4ecd\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/li>\n<p>\u5165\u95e8\u9636\u6bb5\u53ef\u5c06 PIC \u6982\u62ec\u4e3a&#xff1a;<\/p>\n<p><font color=\"#1565C0\"><b>\u4f18\u5148\u4f7f\u7528 PC\/RIP \u76f8\u5bf9\u5bfb\u5740&#xff1b;\u9047\u5230\u8fd0\u884c\u65f6\u624d\u80fd\u786e\u5b9a\u7684\u5916\u90e8\u5730\u5740\u65f6&#xff0c;\u518d\u901a\u8fc7 GOT \u95f4\u63a5\u8bbf\u95ee\u3002<\/b><\/font><\/p>\n<p>\u67d0\u4e9b GOT \u533a\u57df\u5728\u91cd\u5b9a\u4f4d\u5b8c\u6210\u540e\u4f1a\u901a\u8fc7 RELRO \u673a\u5236\u6539\u6210\u53ea\u8bfb&#xff0c;\u5e76\u4e0d\u662f\u6574\u4e2a GOT \u6c38\u8fdc\u4fdd\u6301\u53ef\u5199\u3002\u5165\u95e8\u9636\u6bb5\u5148\u8bb0\u4f4f\u201c\u52a8\u6001\u94fe\u63a5\u5668\u9700\u8981\u5728\u5408\u9002\u9636\u6bb5\u5199\u5165 GOT\u201d\u5373\u53ef\u3002<\/p>\n<hr \/>\n<h2>\u56db\u3001PLT&#xff1a;\u628a\u51fd\u6570\u7ed1\u5b9a\u63a8\u8fdf\u5230\u7b2c\u4e00\u6b21\u8c03\u7528<\/h2>\n<h3>4.1 \u76f4\u63a5\u89c2\u5bdf puts&#064;plt<\/h3>\n<p>objdump <span class=\"token parameter variable\">-d<\/span> a.out <span class=\"token operator\">|<\/span> <span class=\"token function\">less<\/span><\/p>\n<p>\u53ef\u80fd\u770b\u5230&#xff1a;<\/p>\n<p>0000000000001050 &lt;puts&#064;plt&gt;:<br \/>\n    &#8230;<br \/>\n    jmpq *0x&#8230;(%rip)   # \u8df3\u8f6c\u5230 puts \u5bf9\u5e94 GOT \u8868\u9879<\/p>\n<p>0000000000001149 &lt;main&gt;:<br \/>\n    &#8230;<br \/>\n    callq 1050 &lt;puts&#064;plt&gt;<\/p>\n<p>\u4e3b\u7a0b\u5e8f\u5e76\u4e0d\u662f\u76f4\u63a5 call \u5230 libc \u4e2d puts \u7684\u771f\u5b9e\u5730\u5740&#xff0c;\u800c\u662f\u5148\u8c03\u7528\u672c\u7a0b\u5e8f\u4e2d\u7684 puts&#064;plt \u5165\u53e3\u3002<\/p>\n<hr \/>\n<h3>4.2 PLT \u662f\u4ec0\u4e48&#xff1f;<\/h3>\n<p>PLT \u5168\u79f0\u4e3a Procedure Linkage Table&#xff0c;\u8fc7\u7a0b\u94fe\u63a5\u8868\u3002<\/p>\n<p>\u5b83\u662f\u4e00\u7ec4\u7528\u4e8e\u5916\u90e8\u51fd\u6570\u8c03\u7528\u7684\u8df3\u8f6c\u6869\u3002\u6bcf\u4e00\u4e2a\u9700\u8981\u52a8\u6001\u8c03\u7528\u7684\u5916\u90e8\u51fd\u6570&#xff0c;\u901a\u5e38\u90fd\u6709\u5bf9\u5e94\u7684 PLT \u5165\u53e3\u3002<\/p>\n<p>PLT \u548c GOT \u914d\u5408\u540e&#xff0c;\u51fd\u6570\u8c03\u7528\u5927\u81f4\u53d8\u6210&#xff1a;<\/p>\n<p>main<br \/>\n  \u2193 call puts&#064;plt<br \/>\nPLT \u5165\u53e3<br \/>\n  \u2193 \u67e5\u770b GOT[puts]<br \/>\n\u771f\u5b9e puts \u5730\u5740&#xff0c;\u6216\u52a8\u6001\u89e3\u6790\u5668\u5165\u53e3<\/p>\n<hr \/>\n<h3>4.3 \u9996\u6b21\u8c03\u7528\u4e0e\u540e\u7eed\u8c03\u7528<\/h3>\n<p>\u5982\u679c\u7a0b\u5e8f\u542f\u52a8\u65f6\u7acb\u523b\u89e3\u6790\u6240\u6709\u52a8\u6001\u51fd\u6570&#xff0c;\u4f1a\u505a\u5927\u91cf\u7b26\u53f7\u67e5\u8be2\u548c\u91cd\u5b9a\u4f4d\u3002\u4f46\u4e00\u4e2a\u7a0b\u5e8f\u4f9d\u8d56\u7684\u5e93\u4e2d&#xff0c;\u5f88\u591a\u51fd\u6570\u6574\u4e2a\u8fd0\u884c\u671f\u95f4\u53ef\u80fd\u4e00\u6b21\u90fd\u4e0d\u4f1a\u88ab\u8c03\u7528\u3002<\/p>\n<p>\u4e3a\u964d\u4f4e\u542f\u52a8\u9636\u6bb5\u7684\u89e3\u6790\u5f00\u9500&#xff0c;\u52a8\u6001\u94fe\u63a5\u652f\u6301 \u5ef6\u8fdf\u7ed1\u5b9a&#xff08;Lazy Binding&#xff09;&#xff1a;<\/p>\n<h4>\u7b2c\u4e00\u6b21\u8c03\u7528<\/h4>\n<p>\u4f20\u7edf glibc\/x86-64 \u6a21\u578b\u4e0b&#xff0c;\u8c03\u7528\u94fe\u53ef\u4ee5\u6982\u62ec\u4e3a&#xff1a;<\/p>\n<p>call puts&#064;plt<br \/>\n    \u2193<br \/>\n\u8fdb\u5165 puts \u5bf9\u5e94\u7684 PLT \u5165\u53e3<br \/>\n    \u2193<br \/>\n\u8bfb\u53d6 .got.plt \u4e2d\u7684 puts \u8868\u9879<br \/>\n    \u2193<br \/>\n\u8868\u9879\u5c1a\u672a\u4fdd\u5b58\u771f\u5b9e\u5730\u5740&#xff0c;\u8df3\u56de PLT \u7684\u89e3\u6790\u6869<br \/>\n    \u2193<br \/>\n\u8fdb\u5165\u52a8\u6001\u89e3\u6790\u5668&#xff08;\u5e38\u89c1\u5b9e\u73b0\u53ef\u6982\u62ec\u4e3a &#096;_dl_runtime_resolve&#096;&#xff09;<br \/>\n    \u2193<br \/>\n\u67e5\u627e puts\u3001\u8ba1\u7b97\u8fd0\u884c\u65f6\u5730\u5740\u5e76\u56de\u586b .got.plt<br \/>\n    \u2193<br \/>\n\u8df3\u8f6c\u5230 libc \u4e2d\u771f\u6b63\u7684 puts<\/p>\n<p>\u5177\u4f53\u7684 PLT \u6307\u4ee4\u5e03\u5c40\u3001\u89e3\u6790\u5668\u7b26\u53f7\u548c\u5b89\u5168\u673a\u5236\u4f1a\u968f\u67b6\u6784\u3001\u94fe\u63a5\u5668\u7248\u672c\u53ca CET\/RELRO \u7b49\u9009\u9879\u53d8\u5316&#xff0c;\u4f46\u201c\u9996\u6b21\u89e3\u6790\u5e76\u56de\u586b GOT \u8868\u9879\u201d\u7684\u6838\u5fc3\u8fc7\u7a0b\u4e0d\u53d8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141804-6a66171c5b1bc.png\" alt=\"PLT \u5ef6\u8fdf\u7ed1\u5b9a\u7684\u7b2c\u4e00\u6b21\u8c03\u7528\" \/><\/p>\n<h4>\u540e\u7eed\u8c03\u7528<\/h4>\n<p>call puts&#064;plt<br \/>\n    \u2193<br \/>\nPLT \u8bfb\u53d6\u5df2\u7ecf\u66f4\u65b0\u7684 .got.plt \u8868\u9879<br \/>\n    \u2193<br \/>\n\u76f4\u63a5\u8df3\u8f6c\u5230 libc \u4e2d\u771f\u6b63\u7684 puts<\/p>\n<p>\u540e\u7eed\u8c03\u7528\u4e0d\u518d\u91cd\u590d\u6267\u884c\u7b26\u53f7\u67e5\u8be2\u4e0e\u5730\u5740\u56de\u586b\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141806-6a66171e8c6c6.png\" alt=\"\u5b8c\u6210\u7ed1\u5b9a\u540e\u7684\u540e\u7eed\u51fd\u6570\u8c03\u7528\" \/><\/p>\n<p><font color=\"#EF6C00\"><b>PLT \u8d1f\u8d23\u63d0\u4f9b\u8c03\u7528\u5165\u53e3&#xff0c;GOT \u8d1f\u8d23\u4fdd\u5b58\u6700\u7ec8\u5730\u5740&#xff1b;\u52a8\u6001\u94fe\u63a5\u5668\u8d1f\u8d23\u7b2c\u4e00\u6b21\u628a\u6b63\u786e\u5730\u5740\u5199\u8fdb\u53bb\u3002<\/b><\/font><\/p>\n<p>\u73b0\u4ee3\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u9009\u62e9\u5728\u542f\u52a8\u9636\u6bb5\u4e00\u6b21\u6027\u5b8c\u6210\u7ed1\u5b9a&#xff0c;\u4f8b\u5982\u4f7f\u7528 LD_BIND_NOW&#061;1&#xff0c;\u6216\u8005\u94fe\u63a5\u65f6\u542f\u7528 -Wl,-z,now\u3002\u6b64\u65f6\u4ecd\u53ef\u80fd\u5b58\u5728 PLT\/GOT \u7ed3\u6784&#xff0c;\u4f46\u4e0d\u4f1a\u7b49\u5230\u7b2c\u4e00\u6b21\u8c03\u7528\u518d\u89e3\u6790\u3002<\/p>\n<hr \/>\n<h3>4.4 \u5e93\u4e5f\u4f1a\u4f9d\u8d56\u5176\u4ed6\u5e93<\/h3>\n<p>\u52a8\u6001\u94fe\u63a5\u5e76\u4e0d\u53ea\u662f\u201c\u53ef\u6267\u884c\u7a0b\u5e8f\u8c03\u7528\u4e00\u4e2a\u5e93\u201d\u3002\u4e00\u4e2a .so \u5185\u90e8\u4e5f\u53ef\u80fd\u7ee7\u7eed\u8c03\u7528\u53e6\u4e00\u4e2a .so\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141808-6a661720ba046.png\" alt=\"\u52a8\u6001\u5e93\u4e4b\u95f4\u4e5f\u5b58\u5728\u4f9d\u8d56\u5173\u7cfb\" \/><\/p>\n<p>\u67e5\u770b\u52a8\u6001\u4f9d\u8d56\u9879&#xff1a;<\/p>\n<p>readelf <span class=\"token parameter variable\">-d<\/span> libdemo.so <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> NEEDED<\/p>\n<p>\u52a8\u6001\u94fe\u63a5\u5668\u4f1a\u9012\u5f52\u5904\u7406\u4f9d\u8d56\u5173\u7cfb&#xff1a;<\/p>\n<li>\u8bfb\u53d6\u4e3b\u7a0b\u5e8f\u7684 DT_NEEDED&#xff1b;<\/li>\n<li>\u627e\u5230\u5e76\u6620\u5c04\u5bf9\u5e94\u5171\u4eab\u5e93&#xff1b;<\/li>\n<li>\u518d\u8bfb\u53d6\u8fd9\u4e9b\u5e93\u81ea\u5df1\u7684 DT_NEEDED&#xff1b;<\/li>\n<li>\u5efa\u7acb\u6574\u4e2a\u5171\u4eab\u5bf9\u8c61\u4f9d\u8d56\u96c6\u5408&#xff1b;<\/li>\n<li>\u6309\u7b26\u53f7\u89e3\u6790\u89c4\u5219\u67e5\u627e\u5b9a\u4e49&#xff1b;<\/li>\n<li>\u5b8c\u6210\u5404\u6a21\u5757\u7684\u91cd\u5b9a\u4f4d\u548c GOT\/PLT \u521d\u59cb\u5316\u3002<\/li>\n<p>\u5e93\u672c\u8eab\u4e5f\u6709 .dynsym\u3001.dynstr\u3001.rela.*\u3001.got \u548c\u53ef\u80fd\u5b58\u5728\u7684 .plt&#xff0c;\u56e0\u6b64\u5b83\u65e2\u53ef\u4ee5\u5411\u5916\u63d0\u4f9b\u7b26\u53f7&#xff0c;\u4e5f\u53ef\u4ee5\u7ee7\u7eed\u5f15\u7528\u5176\u4ed6\u5e93\u4e2d\u7684\u7b26\u53f7\u3002<\/p>\n<hr \/>\n<h2>\u4e94\u3001\u9759\u6001\u94fe\u63a5\u3001\u88c5\u8f7d\u4e0e\u52a8\u6001\u94fe\u63a5\u7684\u5b8c\u6574\u6d41\u7a0b<\/h2>\n<p>\u4e0b\u9762\u6309\u65f6\u95f4\u987a\u5e8f\u6574\u7406\u5b8c\u6574\u6d41\u7a0b\u3002<\/p>\n<h3>5.1 \u7f16\u8bd1\u9636\u6bb5<\/h3>\n<p>hello.c \u2500\u2500\u7f16\u8bd1\u2500\u2500&gt; hello.o code.c \u2500\u2500\u7f16\u8bd1\u2500\u2500&gt; code.o<\/p>\n<p>\u7f16\u8bd1\u5668\u5b8c\u6210&#xff1a;<\/p>\n<ul>\n<li>\u628a\u6e90\u4ee3\u7801\u7ffb\u8bd1\u4e3a\u673a\u5668\u6307\u4ee4&#xff1b;<\/li>\n<li>\u751f\u6210 Section&#xff1b;<\/li>\n<li>\u751f\u6210\u7b26\u53f7\u8868&#xff1b;<\/li>\n<li>\u5bf9\u6682\u65f6\u4e0d\u80fd\u786e\u5b9a\u7684\u5f15\u7528\u751f\u6210\u91cd\u5b9a\u4f4d\u8bb0\u5f55\u3002<\/li>\n<\/ul>\n<p>\u6b64\u65f6\u4e0d\u540c .o \u5f7c\u6b64\u72ec\u7acb&#xff0c;hello.o \u4e0d\u77e5\u9053 run \u7684\u6700\u7ec8\u4f4d\u7f6e\u3002<\/p>\n<hr \/>\n<h3>5.2 \u9759\u6001\u94fe\u63a5\u9636\u6bb5<\/h3>\n<p>hello.o &#043; code.o &#043; \u9759\u6001\u5e93\u6210\u5458<br \/>\n             \u2193<br \/>\n          \u94fe\u63a5\u5668<br \/>\n             \u2193<br \/>\n        \u53ef\u6267\u884c ELF<\/p>\n<p>\u94fe\u63a5\u5668\u5b8c\u6210&#xff1a;<\/p>\n<ul>\n<li>\u9009\u62e9\u9759\u6001\u5e93\u4e2d\u9700\u8981\u7684\u6210\u5458&#xff1b;<\/li>\n<li>\u5408\u5e76\u548c\u5e03\u5c40\u8f93\u51fa Section&#xff1b;<\/li>\n<li>\u89e3\u6790\u7b26\u53f7&#xff1b;<\/li>\n<li>\u5206\u914d\u5730\u5740&#xff1b;<\/li>\n<li>\u6309\u91cd\u5b9a\u4f4d\u8868\u4fee\u6b63\u5f15\u7528&#xff1b;<\/li>\n<li>\u751f\u6210 Program Header Table&#xff1b;<\/li>\n<li>\u786e\u5b9a Section \u5230 Segment \u7684\u6620\u5c04\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>5.3 \u7a0b\u5e8f\u88c5\u8f7d\u9636\u6bb5<\/h3>\n<p>\u5185\u6838\u8bfb\u53d6 ELF Header<br \/>\n        \u2193<br \/>\n\u8bfb\u53d6 Program Header Table<br \/>\n        \u2193<br \/>\n\u5efa\u7acb\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u533a\u57df<br \/>\n        \u2193<br \/>\n\u6620\u5c04\u4e3b\u7a0b\u5e8f\u548c\u52a8\u6001\u94fe\u63a5\u5668<\/p>\n<p>\u5bf9\u4e8e\u52a8\u6001\u94fe\u63a5\u7a0b\u5e8f&#xff0c;\u5185\u6838\u8fd8\u4f1a\u6839\u636e PT_INTERP \u542f\u52a8\u52a8\u6001\u94fe\u63a5\u5668\u3002<\/p>\n<hr \/>\n<h3>5.4 \u52a8\u6001\u94fe\u63a5\u9636\u6bb5<\/h3>\n<p>\u8bfb\u53d6\u4f9d\u8d56\u5173\u7cfb<br \/>\n      \u2193<br \/>\n\u6620\u5c04\u5404\u4e2a .so<br \/>\n      \u2193<br \/>\n\u89e3\u6790\u52a8\u6001\u7b26\u53f7<br \/>\n      \u2193<br \/>\n\u6267\u884c\u8fd0\u884c\u65f6\u91cd\u5b9a\u4f4d<br \/>\n      \u2193<br \/>\n\u521d\u59cb\u5316 GOT \/ PLT<\/p>\n<p>\u5982\u679c\u4f7f\u7528\u5ef6\u8fdf\u7ed1\u5b9a&#xff0c;\u4e00\u90e8\u5206\u51fd\u6570\u7b26\u53f7\u4f1a\u7b49\u5230\u7b2c\u4e00\u6b21\u8c03\u7528\u65f6\u518d\u89e3\u6790\u3002<\/p>\n<hr \/>\n<h3>5.5 \u6b63\u5f0f\u6267\u884c<\/h3>\n<p>\u52a8\u6001\u94fe\u63a5\u5668\u5b8c\u6210\u5de5\u4f5c<br \/>\n        \u2193<br \/>\n\u4e3b\u7a0b\u5e8f\u5165\u53e3 _start<br \/>\n        \u2193<br \/>\n__libc_start_main<br \/>\n        \u2193<br \/>\nmain<\/p>\n<p>\u8fdb\u5165 main \u65f6&#xff0c;\u88c5\u8f7d\u3001\u4f9d\u8d56\u89e3\u6790\u548c\u5fc5\u8981\u7684\u91cd\u5b9a\u4f4d\u5df2\u7ecf\u5b8c\u6210\u3002<\/p>\n<hr \/>\n<hr \/>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u8fd9\u4e00\u7bc7\u56f4\u7ed5 ELF \u88c5\u8f7d\u548c\u52a8\u6001\u94fe\u63a5\u6574\u7406\u4e86\u4ee5\u4e0b\u7ed3\u8bba&#xff1a;<\/p>\n<li>ELF \u5728\u78c1\u76d8\u4e2d\u5df2\u7ecf\u8bb0\u5f55\u865a\u62df\u5730\u5740\u5e03\u5c40\u6216\u76f8\u5bf9\u5e03\u5c40&#xff0c;\u4f46\u5c1a\u672a\u56fa\u5b9a\u5360\u7528\u67d0\u5757\u7269\u7406\u5185\u5b58&#xff1b;<\/li>\n<li>Program Header Table \u63cf\u8ff0\u9700\u8981\u52a0\u8f7d\u7684 Segment\u3001\u865a\u62df\u5730\u5740\u3001\u6587\u4ef6\u504f\u79fb\u3001\u5927\u5c0f\u548c\u8bbf\u95ee\u6743\u9650&#xff1b;<\/li>\n<li>\u52a0\u8f7d\u5668\u6839\u636e Segment \u521d\u59cb\u5316\u8fdb\u7a0b\u5730\u5740\u7a7a\u95f4&#xff0c;\u7269\u7406\u9875\u901a\u5e38\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u6309\u9700\u5206\u914d\u548c\u8c03\u5165&#xff1b;<\/li>\n<li>\u52a8\u6001\u5e93\u88ab\u6620\u5c04\u5230\u5404\u8fdb\u7a0b\u7684\u5171\u4eab\u533a&#xff0c;\u53ea\u8bfb\u4ee3\u7801\u9875\u53ef\u4ee5\u5171\u4eab&#xff0c;\u53ef\u5199\u6570\u636e\u901a\u5e38\u4fdd\u6301\u8fdb\u7a0b\u79c1\u6709&#xff1b;<\/li>\n<li>PIC \u4f7f\u7528\u76f8\u5bf9\u5bfb\u5740\u5e76\u501f\u52a9 GOT \u4fdd\u5b58\u8fd0\u884c\u65f6\u5730\u5740&#xff0c;\u907f\u514d\u4fee\u6539\u5171\u4eab\u7684\u53ea\u8bfb\u4ee3\u7801&#xff1b;<\/li>\n<li>PLT \u4e3a\u5916\u90e8\u51fd\u6570\u63d0\u4f9b\u8c03\u7528\u5165\u53e3&#xff0c;\u5e76\u53ef\u5c06\u7b26\u53f7\u89e3\u6790\u63a8\u8fdf\u5230\u7b2c\u4e00\u6b21\u771f\u6b63\u8c03\u7528&#xff1b;<\/li>\n<li>\u9996\u6b21\u8c03\u7528\u4f1a\u8fdb\u5165\u52a8\u6001\u89e3\u6790\u6d41\u7a0b\u5e76\u56de\u586b .got.plt&#xff0c;\u540e\u7eed\u8c03\u7528\u53ef\u4ee5\u76f4\u63a5\u8df3\u8f6c\u5230\u771f\u5b9e\u51fd\u6570&#xff1b;<\/li>\n<li>\u5e93\u4e5f\u53ef\u80fd\u4f9d\u8d56\u5176\u4ed6\u5e93&#xff0c;\u52a8\u6001\u94fe\u63a5\u5668\u4f1a\u7edf\u4e00\u5904\u7406\u4f9d\u8d56\u5173\u7cfb\u3001\u7b26\u53f7\u67e5\u8be2\u4e0e\u8fd0\u884c\u65f6\u91cd\u5b9a\u4f4d\u3002<\/li>\n<p><font color=\"#2E7D32\"><b>\u9759\u6001\u94fe\u63a5\u5728\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\u89e3\u51b3\u76ee\u6807\u6587\u4ef6\u4e4b\u95f4\u7684\u5173\u7cfb&#xff1b;\u52a8\u6001\u94fe\u63a5\u5728\u88c5\u8f7d\u548c\u8fd0\u884c\u9636\u6bb5\u7ee7\u7eed\u89e3\u51b3\u53ef\u6267\u884c\u7a0b\u5e8f\u4e0e\u5171\u4eab\u5e93\u4e4b\u95f4\u7684\u5173\u7cfb\u3002<\/b><\/font><\/p>\n<p>\u8d44\u6e90\u5206\u4eab&#xff1a; \u3010Linux\u3011\u5e93\u5236\u4f5c\u4e0e\u539f\u7406&#xff1a;\u4ece\u6e90\u7801\u5230\u9759\u6001\u5e93&#xff0c;\u641e\u61c2 ar\u3001-I\/-L\/-l \u4e0e\u6253\u5305\u4ea4\u4ed8 \u3010Linux\u3011\u5e93\u5236\u4f5c\u4e0e\u539f\u7406&#xff1a;\u4ece\u52a8\u6001\u5e93 not found \u5230 ELF \u52a0\u8f7d&#xff0c;\u5f7b\u5e95\u641e\u61c2\u8fd0\u884c\u65f6\u67e5\u627e \u3010Linux\u3011Ext \u6587\u4ef6\u7cfb\u7edf\u7bc7&#xff1a;\u4ece inode \u5230\u8def\u5f84\u89e3\u6790&#xff0c;\u641e\u61c2\u6302\u8f7d\u4e0e\u8f6f\u786c\u94fe\u63a5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u7231\u548c\u51b0\u9614\u4e50 &#x1f4da;\u4e13\u680f\u4f20\u9001\u95e8&#xff1a;\u300a\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u300b \u3001C &#x1f436;\u5b66\u4e60\u65b9\u5411&#xff1a;C\u65b9\u5411\u5b66\u4e60\u7231\u597d\u8005 \u2b50\u4eba\u751f\u683c\u8a00&#xff1a;\u5f97\u77e5\u5766\u7136 &#xff0c;\u5931\u4e4b\u6de1\u7136  &#x1f3e0;\u535a\u4e3b\u7b80\u4ecb  \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001ELF \u88c5\u8f7d\u4e0e\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u7a7a\u95f41.1 \u78c1\u76d8\u4e2d\u7684 ELF \u5df2\u7ecf\u5305\u542b\u5730\u5740\u5e03\u5c401.2 Program Header Table \u5c31\u662f\u88c5\u8f7d\u8ba1\u52121.3 ELF Segment \u5982\u4f55\u521d\u59cb\u5316 VMA1<\/p>\n","protected":false},"author":2,"featured_media":84990,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9099,84,55,58,44],"topic":[],"class_list":["post-85009","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-9099","tag-android","tag-c","tag-linux","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/85009.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u7231\u548c\u51b0\u9614\u4e50 &#x1f4da;\u4e13\u680f\u4f20\u9001\u95e8&#xff1a;\u300a\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u300b \u3001C &#x1f436;\u5b66\u4e60\u65b9\u5411&#xff1a;C\u65b9\u5411\u5b66\u4e60\u7231\u597d\u8005 \u2b50\u4eba\u751f\u683c\u8a00&#xff1a;\u5f97\u77e5\u5766\u7136 &#xff0c;\u5931\u4e4b\u6de1\u7136 &#x1f3e0;\u535a\u4e3b\u7b80\u4ecb \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001ELF \u88c5\u8f7d\u4e0e\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u7a7a\u95f41.1 \u78c1\u76d8\u4e2d\u7684 ELF \u5df2\u7ecf\u5305\u542b\u5730\u5740\u5e03\u5c401.2 Program Header Table \u5c31\u662f\u88c5\u8f7d\u8ba1\u52121.3 ELF Segment \u5982\u4f55\u521d\u59cb\u5316 VMA1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85009.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T14:18:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a6617188100f.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85009.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85009.html\",\"name\":\"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T14:18:09+00:00\",\"dateModified\":\"2026-07-26T14:18:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85009.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85009.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85009.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/85009.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u7231\u548c\u51b0\u9614\u4e50 &#x1f4da;\u4e13\u680f\u4f20\u9001\u95e8&#xff1a;\u300a\u6570\u636e\u7ed3\u6784\u4e0e\u7b97\u6cd5\u300b \u3001C &#x1f436;\u5b66\u4e60\u65b9\u5411&#xff1a;C\u65b9\u5411\u5b66\u4e60\u7231\u597d\u8005 \u2b50\u4eba\u751f\u683c\u8a00&#xff1a;\u5f97\u77e5\u5766\u7136 &#xff0c;\u5931\u4e4b\u6de1\u7136 &#x1f3e0;\u535a\u4e3b\u7b80\u4ecb \u6587\u7ae0\u76ee\u5f55\u524d\u8a00\u4e00\u3001ELF \u88c5\u8f7d\u4e0e\u8fdb\u7a0b\u865a\u62df\u5730\u5740\u7a7a\u95f41.1 \u78c1\u76d8\u4e2d\u7684 ELF \u5df2\u7ecf\u5305\u542b\u5730\u5740\u5e03\u5c401.2 Program Header Table \u5c31\u662f\u88c5\u8f7d\u8ba1\u52121.3 ELF Segment \u5982\u4f55\u521d\u59cb\u5316 VMA1","og_url":"https:\/\/www.wsisp.com\/helps\/85009.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T14:18:09+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726141800-6a6617188100f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85009.html","url":"https:\/\/www.wsisp.com\/helps\/85009.html","name":"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T14:18:09+00:00","dateModified":"2026-07-26T14:18:09+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85009.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85009.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85009.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u5e93\u5236\u4f5c\u4e0e\u539f\u7406\u8fdb\u9636\u3011\u4ece ELF \u88c5\u8f7d\u5230\u5ef6\u8fdf\u7ed1\u5b9a\uff1a\u641e\u61c2\u52a8\u6001\u5e93\u3001GOT \u4e0e PLT"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85009","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=85009"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85009\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/84990"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85009"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85009"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85009"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85009"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}