{"id":2946,"date":"2011-11-28T21:25:41","date_gmt":"2011-11-28T12:25:41","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=2946"},"modified":"2011-11-28T21:27:29","modified_gmt":"2011-11-28T12:27:29","slug":"ld-absolute-addressing-perhaps-mdynamic-no-pic-used-%e3%81%a8%e3%81%84%e3%81%86%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ae%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=2946","title":{"rendered":"[MacOSX] ld: absolute addressing (perhaps -mdynamic-no-pic) used \u3068\u3044\u3046\u30a8\u30e9\u30fc\u306e\u5bfe\u51e6"},"content":{"rendered":"<p><a href=\"\">\u524d\u306e\u8a18\u4e8b<\/a>\u306e\u901a\u308a\u3001\u30a2\u30bb\u30f3\u30d6\u30eb\u306f\u6b63\u5e38\u306b\u5b8c\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u5ea6\u306f\u3061\u3083\u3093\u3068\u30ea\u30f3\u30af\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3053\u3093\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<blockquote><p>ld: absolute addressing (perhaps -mdynamic-no-pic) used in _x86_sse2_ConvertULY2ToBottomupRGB24.label1 from \/Users\/umezawa\/proj\/utvideo\/build\/utvideo.build\/Release\/utvideo.build\/Objects-normal\/i386\/Convert_asm_x86.o not allowed in slidable image. Use &#8216;-read_only_relocs suppress&#8217; to enable text relocs<\/p><\/blockquote>\n<p>\u8a72\u5f53\u7b87\u6240\u306e\u30b3\u30fc\u30c9\u306f\u304a\u304a\u3080\u306d\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30e1\u30e2\u30ea\u30a2\u30c9\u30ec\u30b9\u3092\uff08\u30ec\u30b8\u30b9\u30bf\u304b\u3089\u306e\u30aa\u30d5\u30bb\u30c3\u30c8\u306a\u3069\u3067\u306f\u306a\u304f\uff09\u7d76\u5bfe\u6307\u5b9a\u3057\u3066\u3044\u308b\u306e\u304c\u3044\u3051\u306a\u3044\u3001\u3068\u8a00\u308f\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<blockquote>\n<pre>        align   64\r\n;                fedcba9876543210\r\nyoff    dq      00010001000100010h\r\n        dq      00000000000000000h\r\n\uff08\u7565\uff09\r\n_x86_sse2_ConvertULY2ToBottomupRGB24:\r\n\uff08\u7565\uff09\r\n.label1:\r\n        pxor            xmm3, xmm3\r\n        movd            xmm0, dword [ebp]\r\n        punpcklbw       xmm0, xmm3\r\n        <b>psubw           xmm0, oword [yoff]<\/b>\r\n        punpcklwd       xmm0, xmm3<\/pre>\n<\/blockquote>\n<p>\u3053\u308c\u3092\u89e3\u6d88\u3059\u308b\u306b\u306f PIC (Position Independent Code) \u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001Windows \u306e\u4f4f\u4eba\u304b\u3089\u3059\u308b\u3068\u305d\u3093\u306a\u4e0b\u3089\u306a\u3044\u3053\u3068\u306f\uff08\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u63db\u3048\u308b\u306e\u3067\u306f\u306a\u304f\uff09\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u30ed\u30fc\u30c0\u30fc\u304c\u89e3\u6c7a\u3057\u308d\u3088\u3068\u601d\u3046\u308f\u3051\u3067\u3059\u3002Visual C++ \u306b\u306f PIC \u306b\u3059\u308b\u30b3\u30f3\u30d1\u30a4\u30e9\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u7121\u304f\u3001DLL \u3092\u30ed\u30fc\u30c9\u3059\u308b\u6642\u306b\u5168\u90e8\u89e3\u6c7a\u3055\u308c\u307e\u3059\u3002x86 \u3067 PIC \u306b\u3059\u308b\u3068 eip \u30ec\u30b8\u30b9\u30bf\u3092\u6c4e\u7528\u30ec\u30b8\u30b9\u30bf\u306b\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u306b call \u3068 pop \u3092\u3059\u308b\u73cd\u5999\u306a\u30b3\u30fc\u30c9\u304c\u51fa\u529b\u3055\u308c\u3001\u3053\u308c\u306f\u73fe\u4ee3\u7684\u306a\u30d7\u30ed\u30bb\u30c3\u30b5\u3067\u306f\u6050\u3089\u304f\u5927\u5e45\u306b\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c0\u30a6\u30f3\u3057\u307e\u3059\u3002x64 \u3060\u3068\u3053\u306e\u3042\u305f\u308a\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b RIP \u76f8\u5bfe\u30a2\u30c9\u30ec\u30c3\u30b7\u30f3\u30b0\u304c\u5c0e\u5165\u3055\u308c\u305f\u308f\u3051\u3067\u3059\u304c\u3002<\/p>\n<p>\u3053\u3093\u306a\u3082\u3093\u306b\u4ed8\u304d\u5408\u3046\u3064\u3082\u308a\u306f\u7121\u3044\u306e\u3067\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3067\u63d0\u793a\u3055\u308c\u3066\u3044\u308b\u901a\u308a &#8220;-read_only_relocs suppress&#8221; \u3092\u30ea\u30f3\u30ab\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u4ed8\u3051\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u30d3\u30eb\u30c9\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u300c\u60c5\u5831\u3092\u898b\u308b\u300d\u306e\u300c\u30d3\u30eb\u30c9\u300d\u30bf\u30d6\u306e\u4e2d\u306e\u300c\u30ea\u30f3\u30af\u300d\u306e\u4e0b\u306e\u300c\u4ed6\u306e\u30ea\u30f3\u30ab\u30d5\u30e9\u30b0\u300d\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u30ea\u30f3\u30af\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2011\/11\/xcode-other_ldflags-read_only_relocs_suppress.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2011\/11\/xcode-other_ldflags-read_only_relocs_suppress.png\" alt=\"\" title=\"\u300c\u4ed6\u306e\u30ea\u30f3\u30ab\u30d5\u30e9\u30b0\u300d\u306b -read_only_relocs suppress \u3092\u8ffd\u52a0\" width=\"320\" height=\"256\" class=\"alignnone size-full wp-image-2950\" \/><\/a><\/p>\n<p>\u3067\u3001\u3067\u304d\u305f\u30d0\u30a4\u30ca\u30ea\u304c\u3061\u3083\u3093\u3068\u5b9f\u884c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3067\u3059\u304c\u3001\u3061\u3087\u308d\u3063\u3068\u8a66\u3057\u305f\u9650\u308a\u3067\u306f\u6b63\u5e38\u306b\u52d5\u3044\u3066\u3044\u307e\u3059\u3002\u305f\u3076\u3093\u3001\u30d0\u30a4\u30ca\u30ea\u3092\u30e1\u30e2\u30ea\u4e0a\u3067\u66f8\u304d\u63db\u3048\u308b\u305f\u3081\u306b\u30ed\u30fc\u30c9\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u4ee5\u5916\u306f\u3001\u5225\u6bb5\u306e\u554f\u984c\u306f\u767a\u751f\u3057\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u306e\u8a18\u4e8b\u306e\u901a\u308a\u3001\u30a2\u30bb\u30f3\u30d6\u30eb\u306f\u6b63\u5e38\u306b\u5b8c\u4e86\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u5ea6\u306f\u3061\u3083\u3093\u3068\u30ea\u30f3\u30af\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-2946","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2946"}],"version-history":[{"count":5,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2946\/revisions"}],"predecessor-version":[{"id":2953,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2946\/revisions\/2953"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2946"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}