{"id":275337,"date":"2023-06-18T20:08:15","date_gmt":"2023-06-18T12:08:15","guid":{"rendered":"https:\/\/lrxjmw.cn\/lwjjgynhgx.html"},"modified":"2023-06-18T20:08:15","modified_gmt":"2023-06-18T12:08:15","slug":"lwjjgynhgx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lwjjgynhgx.html","title":{"rendered":"Linux Header.s\uff1a\u6587\u4ef6\u7ed3\u6784\u4e0e\u5185\u6838\u5173\u7cfb"},"content":{"rendered":"

Linux<\/a>\u4f5c\u4e3a\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u7684\u64cd\u4f5c\u7cfb\u7edf<\/a>linux\u5c31\u8be5\u8fd9\u4e48\u5b66\uff0c\u5907\u53d7\u5e7f\u5927\u7a0b\u5e8f\u5458\u7684\u9752\u7750\u3002\u800c\u5728Linux\u5185\u6838\u4e2d\uff0cheader.s\u6587\u4ef6\u5219\u662f\u6700\u57fa\u7840\u3001\u6700\u91cd\u8981\u7684\u6587\u4ef6\u4e4b\u4e00\u3002\u672c\u6587\u5c06\u4ece\u591a\u4e2a\u65b9\u9762\u6df1\u5165\u63a2\u8ba8header.s\u6587\u4ef6\u7684\u4f5c\u7528\u3001\u7ed3\u6784\u53ca\u5176\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfb\u3002<\/p>\n

\u4e00\u3001\u4ec0\u4e48\u662fheader.s\u6587\u4ef6<\/b><\/p>\n

\u5728Linux\u5185\u6838\u6e90\u4ee3\u7801\u4e2d\uff0cheader.s\u6587\u4ef6\u662f\u4e00\u4e2a\u6c47\u7f16\u8bed\u8a00\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u6c47\u7f16\u4ee3\u7801\u548c\u5b8f\u5b9a\u4e49<\/a>\u3002\u8fd9\u4e2a\u6587\u4ef6\u5b9a\u4e49\u4e86\u5185\u6838\u542f\u52a8\u65f6\u9700\u8981\u7528\u5230\u7684\u4e00\u4e9b\u4f4e\u7ea7\u51fd\u6570\u548c\u53d8\u91cf\u3002<\/p>\n

\u4e8c\u3001header.s\u6587\u4ef6\u7684\u4f5c\u7528<\/b><\/p>\n

header.s\u6587\u4ef6\u4e3b\u8981\u6709\u4ee5\u4e0b\u4f5c\u7528\uff1a<\/p>\n

1.\u5b9a\u4e49\u4e86\u5185\u6838\u542f\u52a8\u65f6\u9700\u8981\u7528\u5230\u7684\u5168\u5c40\u53d8\u91cf\u548c\u51fd\u6570\uff1b<\/p>\n

<\/p>\n

2.\u5b9a\u4e49\u4e86\u5185\u6838\u5728\u542f\u52a8\u65f6\u9700\u8981\u6267\u884c\u7684\u521d\u59cb\u5316\u4ee3\u7801\uff1b<\/p>\n

3.\u5b9a\u4e49\u4e86\u5185\u6838\u8c03\u8bd5\u65f6\u4f7f\u7528\u7684\u4e00\u4e9b\u5b8f\u5b9a\u4e49\u3002<\/p>\n

\u4e09\u3001header.s\u6587\u4ef6\u7684\u7ed3\u6784<\/b><\/p>\n

header.s\u6587\u4ef6\u4e3b\u8981\u7531\u4ee5\u4e0b\u51e0\u90e8\u5206\u7ec4\u6210\uff1a<\/p>\n

1.\u6587\u4ef6\u5934\u90e8\u5206\uff1a\u5305\u542b\u4e86\u5f88\u591a\u6ce8\u91ca\u548c\u5b8f\u5b9a\u4e49\uff0c\u7528\u4e8e\u63cf\u8ff0\u8be5\u6587\u4ef6\u7684\u4f5c\u7528\u4ee5\u53ca\u8be5\u6587\u4ef6\u6240\u4f9d\u8d56\u7684\u5176\u4ed6\u5934\u6587\u4ef6\uff1b<\/p>\n

2.\u6570\u636e\u6bb5\uff08.data\uff09\uff1a\u5305\u542b\u4e86\u4e00\u4e9b\u5168\u5c40\u53d8\u91cf\uff0c\u8fd9\u4e9b\u53d8\u91cf\u5728\u6574\u4e2a\u5185\u6838\u542f\u52a8\u8fc7\u7a0b\u4e2d\u90fd\u53ef\u4ee5\u88ab\u8bbf\u95ee\uff1b<\/p>\n

3.\u4ee3\u7801\u6bb5\uff08.text\uff09\uff1a\u5305\u542b\u4e86\u4e00\u4e9b\u6c47\u7f16\u4ee3\u7801\uff0c\u8fd9\u4e9b\u4ee3\u7801\u5728\u5185\u6838\u542f\u52a8\u65f6\u4f1a\u88ab\u6267\u884c\uff1b<\/p>\n

4.\u5c3e\u90e8\uff08.end\uff09\uff1a\u6807\u8bc6\u8be5\u6587\u4ef6\u7684\u7ed3\u5c3e\u3002<\/p>\n

\u56db\u3001header.s\u6587\u4ef6\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfb<\/b><\/p>\n

header.s\u6587\u4ef6\u662f\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u4e2d\u6700\u57fa\u7840\u3001\u6700\u5e95\u5c42\u7684\u90e8\u5206\u4e4b\u4e00\u3002\u5b83\u5b9a\u4e49\u4e86\u5185\u6838\u542f\u52a8\u65f6\u9700\u8981\u7528\u5230\u7684\u51fd\u6570\u548c\u53d8\u91cf\uff0c\u662f\u6574\u4e2a\u5185\u6838\u542f\u52a8\u8fc7\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\u3002\u540c\u65f6\uff0c\u5728\u5185\u6838\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u4e5f\u9700\u8981\u7528\u5230header.s\u6587\u4ef6\u4e2d\u6240\u5b9a\u4e49\u7684\u5b8f\u5b9a\u4e49\u3002<\/p>\n

\u4e94\u3001\u5982\u4f55\u7f16\u5199header.s\u6587\u4ef6<\/b><\/p>\n

\u7f16\u5199header.s\u6587\u4ef6\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u6c47\u7f16\u8bed\u8a00\u57fa\u7840\u3002\u5728\u7f16\u5199\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n

<\/p>\n

1. header.s\u6587\u4ef6\u5fc5\u987b\u4ee5.global _start\u4f5c\u4e3a\u5165\u53e3\u70b9\uff1b<\/p>\n

2.\u5728\u6570\u636e\u6bb5\u4e2d\u5b9a\u4e49\u7684\u5168\u5c40\u53d8\u91cf\u5fc5\u987b\u4ee5\u201c_\u201d\u5f00\u5934\uff1b<\/p>\n

3.\u5728\u4ee3\u7801\u6bb5\u4e2d\u7f16\u5199\u7684\u6c47\u7f16\u4ee3\u7801\u5fc5\u987b\u9075\u5faaAT&T\u683c\u5f0f\u3002<\/p>\n

\u516d\u3001header.s\u6587\u4ef6\u6848\u4f8b\u5206\u6790<\/b><\/p>\n

\u4e0b\u9762\u4ee5Linux 5.13\u7248\u672c\u4e3a\u4f8blinux header.s<\/strong>linux header.s<\/strong>\uff0c\u5bf9header.s\u6587\u4ef6\u8fdb\u884c\u8be6\u7ec6\u5206\u6790\u3002\u5177\u4f53\u5185\u5bb9\u8bf7\u89c1\u9644\u5f55\u3002<\/p>\n

\u4e03\u3001\u603b\u7ed3<\/b><\/p>\n

\u672c\u6587\u5bf9Linux\u5185\u6838\u6e90\u4ee3\u7801\u4e2d\u7684header.s\u6587\u4ef6\u8fdb\u884c\u4e86\u6df1\u5165\u63a2\u8ba8\uff0c\u4ecb\u7ecd\u4e86header.s\u6587\u4ef6\u7684\u4f5c\u7528\u3001\u7ed3\u6784\u53ca\u5176\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfb\uff0c\u5e76\u7ed9\u51fa\u4e86\u7f16\u5199header.s\u6587\u4ef6\u7684\u76f8\u5173\u6ce8\u610f\u4e8b\u9879\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5e95\u5c42\u673a\u5236\u3002<\/p>\n

\u9644\u5f55<\/b><\/p>\n

\u4ee5\u4e0b\u662fLinux 5.13\u7248\u672c\u4e2d\u7684header.s\u6587\u4ef6\u4ee3\u7801\uff1a\uff08\u4ee3\u7801\u5757\u4e2d\u4e3aAT&T\u683c\u5f0f\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"

\u800c\u5728Linux\u5185\u6838\u4e2d\uff0cheader.s\u6587\u4ef6\u7684\u4f5c\u7528\u3001\u7ed3\u6784\u53ca\u5176\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfb\u3002\u5728Linux\u5185\u6838\u6e90\u4ee3\u7801\u4e2d\uff0cheader.s\u6587\u4ef6\u662f\u4e00\u4e2a\u6c47\u7f16\u8bed\u8a00\u6587\u4ef6\uff0c\u5b83\u5305\u542b\u4e86\u4e00\u4e9b\u57fa\u7840\u7684\u6c47\u7f16\u4ee3\u7801\u548c\u5b8f\u5b9a\u4e49\u3002\u8fd9\u4e2a\u6587\u4ef6\u5b9a\u4e49\u4e86\u5185\u6838\u542f\u52a8\u65f6\u9700\u8981\u7528\u5230\u7684\u4e00\u4e9b\u4f4e\u7ea7\u51fd\u6570\u548c\u53d8\u91cf\u3002s\u6587\u4ef6\u7684\u7ed3\u6784s\u6587\u4ef6\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfbs\u6587\u4ef6\u8fdb\u884c\u4e86\u6df1\u5165\u63a2\u8ba8\uff0c\u4ecb\u7ecd\u4e86header.s\u6587\u4ef6\u7684\u4f5c\u7528\u3001\u7ed3\u6784\u53ca\u5176\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u5185\u6838\u7684\u5173\u7cfb\uff0c\u5e76\u7ed9\u51fa\u4e86\u7f16\u5199header.<\/p>\n","protected":false},"author":1,"featured_media":275338,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-275337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=275337"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/275337\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/275338"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=275337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=275337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=275337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}