{"id":6494,"date":"2020-01-21T11:26:07","date_gmt":"2020-01-21T03:26:07","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6494"},"modified":"2020-01-21T16:47:05","modified_gmt":"2020-01-21T08:47:05","slug":"nm","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/nm","title":{"rendered":"nm\u547d\u4ee4 – \u663e\u793a\u4e8c\u8fdb\u5236\u76ee\u6807\u6587\u4ef6\u7684\u7b26\u53f7\u8868"},"content":{"rendered":"\n

nm\u662fnames\u7684\u7f29\u5199\uff0c nm\u547d\u4ee4\u4e3b\u8981\u662f\u7528\u6765\u5217\u51fa\u67d0\u4e9b\u6587\u4ef6\u4e2d\u7684\u7b26\u53f7\uff08\u8bf4\u767d\u4e86\u5c31\u662f\u4e00\u4e9b\u51fd\u6570\u548c\u5168\u5c40\u53d8\u91cf\u7b49\uff09\u3002 \u4e00\u822c\u6765\u8bf4\uff0c \u641elinux\u5f00\u53d1\u7684\u4eba\uff0c \u624d\u4f1a\u7528\u5230nm\u547d\u4ee4\uff0c \u975e\u5f00\u53d1\u7684\u4eba\uff0c \u5e94\u8be5\u7528\u4e0d\u5230\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f:<\/strong> nm [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u9009\u9879\uff1a<\/strong><\/p>\n\n\n\n

-A<\/td>\u6bcf\u4e2a\u7b26\u53f7\u524d\u663e\u793a\u6587\u4ef6\u540d <\/td><\/tr>
-D<\/td>\u663e\u793a\u52a8\u6001\u7b26\u53f7 <\/td><\/tr>
-g<\/td>\u4ec5\u663e\u793a\u5916\u90e8\u7b26\u53f7 <\/td><\/tr>
-r<\/td>\u53cd\u5e8f\u663e\u793a\u7b26\u53f7\u8868 <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793ahello.o \u4e2d\u7684\u672a\u5b9a\u4e49\u7b26\u53f7\uff0c\u9700\u8981\u548c\u5176\u4ed6\u5bf9\u8c61\u6587\u4ef6\u8fdb\u884c\u94fe\u63a5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nm -u hello.o <\/pre>\n\n\n\n

\u5728\/usr\/lib\/ \u76ee\u5f55\u4e0b\u627e\u51fa\u54ea\u4e2a\u5e93\u6587\u4ef6\u5b9a\u4e49\u4e86memset\u51fd\u6570\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nm -A \/usr\/lib\/* 2>\/dev\/null | grep \"T memset\" <\/pre>\n\n\n\n

\u663e\u793anm\u7684\u7248\u672c\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nm -v<\/pre>\n\n\n\n

\u663e\u793a\u8c03\u8bd5\u7b26\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# nm -a hello.o <\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

nm\u662fnames\u7684\u7f29\u5199\uff0c nm\u547d\u4ee4\u4e3b\u8981\u662f\u7528\u6765\u5217\u51fa\u67d0\u4e9b\u6587\u4ef6\u4e2d\u7684\u7b26\u53f7\uff08\u8bf4\u767d\u4e86\u5c31\u662f\u4e00\u4e9b\u51fd\u6570\u548c\u5168\u5c40\u53d8\u91cf\u7b49\uff09\u3002 \u4e00\u822c\u6765\u8bf4 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6494"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6494"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6494\/revisions"}],"predecessor-version":[{"id":6560,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6494\/revisions\/6560"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}