{"id":187607,"date":"2020-11-08T22:36:09","date_gmt":"2020-11-08T14:36:09","guid":{"rendered":"http:\/\/4563.org\/?p=187607"},"modified":"2020-11-09T16:38:54","modified_gmt":"2020-11-09T08:38:54","slug":"%e5%93%aa%e9%87%8c%e5%8f%af%e4%bb%a5%e6%89%be%e5%88%b0%e6%97%a9%e6%9c%9f-go-%e7%9a%84-binary%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=187607","title":{"rendered":"\u54ea\u91cc\u53ef\u4ee5\u627e\u5230\u65e9\u671f Go \u7684 Binary\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u54ea\u91cc\u53ef\u4ee5\u627e\u5230\u65e9\u671f Go \u7684 Binary\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alan0liang <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u60f3\u8dd1\u4e00\u4e2a\u65e9\u671f Go \u5199\u7684\u7a0b\u5e8f\uff08\u65f6\u95f4\u5728 2010 \u5e74 3 \u6708\uff0c\u548c go 1+ \u4e0d\u517c\u5bb9\uff09\uff0c\u4f46\u662f\u627e\u4e0d\u5230\u90a3\u4e2a\u65f6\u5019\u9884\u7f16\u8bd1\u7684 binary\uff0c\u81ea\u5df1\u7f16\u8bd1\u7684\u8bdd\u8981\u4e0d\u6839\u672c\u901a\u4e0d\u8fc7\u7f16\u8bd1\uff0c\u8981\u4e0d\u7f16\u8bd1\u51fa\u6765\u8dd1\u4e00\u4e2a hello world \u90fd segmentation fault\uff0c\u6709\u4ec0\u4e48\u9014\u5f84\u53ef\u4ee5\u83b7\u5f97\u8fd9\u79cd binary \u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4079708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ExplorerLog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u53bb\u6e90\u4ee3\u7801\u7f16\u8bd1\uff1f<br \/>https:\/\/go.googlesource.com\/go\/+refs                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079709\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : user8341 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fde Go \u90fd\u5df2\u7ecf\u53d8\u5316\u90a3\u4e48\u5927\u4e86\u5417\uff1f\u73b0\u5728\u5199\u7684\u7a0b\u5e8f\u5982\u4f55\u4fdd\u8bc1 10 \u5e74\u540e\u53ef\u4ee5\u8fd0\u884c\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079710\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : alan0liang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ExplorerLog \u6211\u8bd5\u7740\u7f16\u8bd1\u4e86\uff0c\u5404\u79cd\u7f16\u8bd1\u62a5\u9519+segmentation fault                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079711\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : westoy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e9\u671f go \u751f\u6210\u7684 binary \u5bf9 libc \u5f3a\u4f9d\u8d56\u5427 \uff0c\u4f60\u8fd8\u5f97\u7528\u5f53\u65f6\u7684\u7cfb\u7edf&#8230;&#8230;\u4e0d\u8fc7\u51e0\u4e2a\u7cfb\u7edf\u7248\u672c 10 \u5e74\u7684\u6e90\u5305\u5730\u5740\u90fd\u4e0d\u7ef4\u62a4\u4e86\u5427&#8230;&#8230;&#8230;.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079712\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TomatoAres <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u4ee3\u7801\u91cf\u4e0d\u5927\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u6539\u6539 <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/uN704852-2.png\" alt=\"\u54ea\u91cc\u53ef\u4ee5\u627e\u5230\u65e9\u671f Go \u7684 Binary\uff1f\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079713\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zzn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @user8341 \u8fd9\u662f go 1 \u524d\u7684\u8bed\u6cd5\uff0c\u6ca1\u4eba\u4fdd\u8bc1\u517c\u5bb9\u6027\u800c\u5df2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079714\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Aoang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @alan0liang \u4f60\u7528\u4ec0\u4e48\u7f16\u8bd1\u7684\uff0c\u6ca1\u6709\u5b9e\u73b0\u81ea\u4e3e\u4e4b\u524d\u7684 Golang \u662f\u9700\u8981\u7528 C \u53bb\u7f16\u8bd1\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079715\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             go \u81ea\u5e26 fix \u547d\u4ee4\uff0c\u53ef\u4ee5\u5c06\u4ee3\u7801\u8f6c\u6210 go1 \u517c\u5bb9\u7684\uff0c\u53ef\u80fd\u6709\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079716\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : alan0liang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Aoang gcc-4.8<br \/>@reus \u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079717\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @user8341 2012 \u5e74 go1.0 \u53d1\u5e03\u4e4b\u540e\u7684 go \u7a0b\u5e8f\uff0c\u5230\u73b0\u5728\u5b8c\u5168\u517c\u5bb9\u3002\u4e3b\u7684\u662f 1.0 \u53d1\u5e03\u4e4b\u524d\u7684\uff0c\u662f\u4e0d\u517c\u5bb9\u7684\u3002\u4f46\u662f go \u81ea\u5e26\u4e86\u4e00\u4e2a fix \u547d\u4ee4\uff0c\u662f\u53ef\u4ee5\u5c06\u65e7\u7248\u672c\u7684 go \u4ee3\u7801\u81ea\u52a8\u8f6c\u6362\u6210 go1.0 \u517c\u5bb9\u7684\u4ee3\u7801\u7684\u3002<\/p>\n<p>@alan0liang \u53ea\u6709 go1.0 \u7684 fix \u624d\u652f\u6301\u8f6c\u6362\uff0c\u5230 go1.1 \u5c31\u4e0d\u652f\u6301\u4e86\uff0c\u6240\u4ee5\u8981\u4e0b\u8f7d go1.0 \u7684 bin \u3002\u521a\u521a\u770b\u5230 1.1 \u7684 release notes \u91cc\u8bf4\u7684\uff1a https:\/\/golang.org\/doc\/go1.1#gofix                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4079718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kenzi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u591a\u88c5\u4e00\u4efd\u53bb bin \u5c31\u597d\u3002\u3002<\/p>\n<p>&#8220;`<br \/>go get golang.org\/dl\/go1.14.4<br \/>go1.14.4 download<br \/>go1.14.4 run main.go<br \/>&#8220;`                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u54ea\u91cc\u53ef\u4ee5\u627e\u5230\u65e9\u671f Go \u7684 Bin&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187607"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187607"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187607\/revisions"}],"predecessor-version":[{"id":187609,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/187607\/revisions\/187609"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187607"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}