{"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/1358","labels_url":"https://api.github.com/repos/zeromq/libzmq/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/libzmq/issues/1358/comments","events_url":"https://api.github.com/repos/zeromq/libzmq/issues/1358/events","html_url":"https://github.com/zeromq/libzmq/issues/1358","id":58236988,"number":1358,"title":"Why is amd64/libzmq.so 7.4 MB, but the i386/libzmq.so is only 1.4 MB?","user":{"login":"metadings","id":1684098,"avatar_url":"https://avatars.githubusercontent.com/u/1684098?v=3","gravatar_id":"","url":"https://api.github.com/users/metadings","html_url":"https://github.com/metadings","followers_url":"https://api.github.com/users/metadings/followers","following_url":"https://api.github.com/users/metadings/following{/other_user}","gists_url":"https://api.github.com/users/metadings/gists{/gist_id}","starred_url":"https://api.github.com/users/metadings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadings/subscriptions","organizations_url":"https://api.github.com/users/metadings/orgs","repos_url":"https://api.github.com/users/metadings/repos","events_url":"https://api.github.com/users/metadings/events{/privacy}","received_events_url":"https://api.github.com/users/metadings/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-19T17:03:22Z","updated_at":"2015-02-19T20:39:15Z","closed_at":"2015-02-19T20:09:59Z","body":"According to my file viewer, I have and amd64/libzmq.so with 7.4 MB but a amd64/libzmq.dll with just 334.8 KB (in zeromq4-1, but also libzmq). (i386/libzmq.so is 1.4 MB, i386/libzmq.dll is 269.3 KB)\r\n\r\nWhy is the difference that hard?\r\n\r\n---\r\nI'm compiling the i386 Linux version using\r\n```bash\r\n./configure --with-libsodium --with-pgm                                           \\\r\n\\\r\nCFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32                                            \\\r\n\\\r\nsodium_CFLAGS='-I/home/metadings/Documents/libsodium/src/include/ -m32'           \\\r\nsodium_CXXFLAGS=-m32 sodium_LDFLAGS=-m32                                          \\\r\nsodium_LIBS=/home/metadings/Documents/libsodium/.libs32/libsodium.a               \\\r\n\\\r\npgm_CFLAGS='-I/home/metadings/Documents/libpgm/openpgm/pgm/include/ -m32'         \\\r\npgm_CXXFLAGS=-m32 pgm_LDFLAGS=-m32                                                \\\r\npgm_LIBS=/home/metadings/Documents/libpgm/openpgm/pgm/.libs32/libpgm_noinst.a\r\n```\r\nThe amd64 Linux version is compiled using \r\n```bash\r\n./configure --with-libsodium --with-pgm                                           \\\r\n\\\r\nsodium_CFLAGS='-I/home/metadings/Documents/libsodium/src/include/'                \\\r\nsodium_LIBS=/home/metadings/Documents/libsodium/.libs64/libsodium.a               \\\r\n\\\r\npgm_CFLAGS='-I/home/metadings/Documents/libpgm/openpgm/pgm/include/'              \\\r\npgm_LIBS=/home/metadings/Documents/libpgm/openpgm/pgm/.libs64/libpgm_noinst.a\r\n``` "},"comment":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/comments/75131208","html_url":"https://github.com/zeromq/libzmq/issues/1358#issuecomment-75131208","issue_url":"https://api.github.com/repos/zeromq/libzmq/issues/1358","id":75131208,"user":{"login":"metadings","id":1684098,"avatar_url":"https://avatars.githubusercontent.com/u/1684098?v=3","gravatar_id":"","url":"https://api.github.com/users/metadings","html_url":"https://github.com/metadings","followers_url":"https://api.github.com/users/metadings/followers","following_url":"https://api.github.com/users/metadings/following{/other_user}","gists_url":"https://api.github.com/users/metadings/gists{/gist_id}","starred_url":"https://api.github.com/users/metadings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metadings/subscriptions","organizations_url":"https://api.github.com/users/metadings/orgs","repos_url":"https://api.github.com/users/metadings/repos","events_url":"https://api.github.com/users/metadings/events{/privacy}","received_events_url":"https://api.github.com/users/metadings/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T20:39:15Z","updated_at":"2015-02-19T20:39:15Z","body":"32bit binary, from a 64bit computer\r\n```bash\r\nThere are 28 section headers, starting at offset 0xfb6c0:\r\n\r\nSection Headers:\r\n  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al\r\n  [ 0]                   NULL            00000000 000000 000000 00      0   0  0\r\n  [ 1] .note.gnu.build-id NOTE            00000114 000114 000024 00   A  0   0  4\r\n  [ 2] .gnu.hash         GNU_HASH        00000138 000138 0001bc 04   A  3   0  4\r\n  [ 3] .dynsym           DYNSYM          000002f4 0002f4 001020 10   A  4   1  4\r\n  [ 4] .dynstr           STRTAB          00001314 001314 000f66 00   A  0   0  1\r\n  [ 5] .gnu.version      VERSYM          0000227a 00227a 000204 02   A  3   0  2\r\n  [ 6] .gnu.version_r    VERNEED         00002480 002480 000170 00   A  4   5  4\r\n  [ 7] .rel.dyn          REL             000025f0 0025f0 003270 08   A  3   0  4\r\n  [ 8] .rel.plt          REL             00005860 005860 0006a0 08   A  3  10  4\r\n  [ 9] .init             PROGBITS        00005f00 005f00 000023 00  AX  0   0  4\r\n  [10] .plt              PROGBITS        00005f30 005f30 000d50 04  AX  0   0 16\r\n  [11] .text             PROGBITS        00006c80 006c80 0ab7f4 00  AX  0   0 16\r\n  [12] .fini             PROGBITS        000b2474 0b2474 000014 00  AX  0   0  4\r\n  [13] .rodata           PROGBITS        000b24a0 0b24a0 01c0a0 00   A  0   0 32\r\n  [14] .eh_frame_hdr     PROGBITS        000ce540 0ce540 0071fc 00   A  0   0  4\r\n  [15] .eh_frame         PROGBITS        000d573c 0d573c 01f848 00   A  0   0  4\r\n  [16] .gcc_except_table PROGBITS        000f4f84 0f4f84 0031ea 00   A  0   0  4\r\n  [17] .init_array       INIT_ARRAY      000f910c 0f910c 00000c 00  WA  0   0  4\r\n  [18] .fini_array       FINI_ARRAY      000f9118 0f9118 000004 00  WA  0   0  4\r\n  [19] .jcr              PROGBITS        000f911c 0f911c 000004 00  WA  0   0  4\r\n  [20] .data.rel.ro      PROGBITS        000f9120 0f9120 001d94 00  WA  0   0 32\r\n  [21] .dynamic          DYNAMIC         000faeb4 0faeb4 000108 08  WA  4   0  4\r\n  [22] .got              PROGBITS        000fafbc 0fafbc 000028 04  WA  0   0  4\r\n  [23] .got.plt          PROGBITS        000fb000 0fb000 00035c 04  WA  0   0  4\r\n  [24] .data             PROGBITS        000fb360 0fb360 00023c 00  WA  0   0 32\r\n  [25] .bss              NOBITS          000fb5a0 0fb59c 004340 00  WA  0   0 32\r\n  [26] .comment          PROGBITS        00000000 0fb59c 000024 01  MS  0   0  1\r\n  [27] .shstrtab         STRTAB          00000000 0fb5c0 0000ff 00      0   0  1\r\n```\r\n64bit binary from a 64bit computer\r\n```bash\r\nThere are 28 section headers, starting at offset 0xbb960:\r\n\r\nSection Headers:\r\n  [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al\r\n  [ 0]                   NULL            0000000000000000 000000 000000 00      0   0  0\r\n  [ 1] .note.gnu.build-id NOTE            00000000000001c8 0001c8 000024 00   A  0   0  4\r\n  [ 2] .gnu.hash         GNU_HASH        00000000000001f0 0001f0 0001bc 00   A  3   0  8\r\n  [ 3] .dynsym           DYNSYM          00000000000003b0 0003b0 001800 18   A  4   2  8\r\n  [ 4] .dynstr           STRTAB          0000000000001bb0 001bb0 001079 00   A  0   0  1\r\n  [ 5] .gnu.version      VERSYM          0000000000002c2a 002c2a 000200 02   A  3   0  2\r\n  [ 6] .gnu.version_r    VERNEED         0000000000002e30 002e30 000160 00   A  4   5  8\r\n  [ 7] .rela.dyn         RELA            0000000000002f90 002f90 009540 18   A  3   0  8\r\n  [ 8] .rela.plt         RELA            000000000000c4d0 00c4d0 0012d8 18   A  3  10  8\r\n  [ 9] .init             PROGBITS        000000000000d7a8 00d7a8 00001a 00  AX  0   0  4\r\n  [10] .plt              PROGBITS        000000000000d7d0 00d7d0 000ca0 10  AX  0   0 16\r\n  [11] .text             PROGBITS        000000000000e480 00e480 078371 00  AX  0   0 32\r\n  [12] .fini             PROGBITS        00000000000867f4 0867f4 000009 00  AX  0   0  4\r\n  [13] .rodata           PROGBITS        0000000000086800 086800 019a00 00   A  0   0 32\r\n  [14] .eh_frame_hdr     PROGBITS        00000000000a0200 0a0200 003494 00   A  0   0  4\r\n  [15] .eh_frame         PROGBITS        00000000000a3698 0a3698 0119dc 00   A  0   0  8\r\n  [16] .gcc_except_table PROGBITS        00000000000b5074 0b5074 001ca9 00   A  0   0  4\r\n  [17] .init_array       INIT_ARRAY      00000000002b7300 0b7300 000018 00  WA  0   0  8\r\n  [18] .fini_array       FINI_ARRAY      00000000002b7318 0b7318 000008 00  WA  0   0  8\r\n  [19] .jcr              PROGBITS        00000000002b7320 0b7320 000008 00  WA  0   0  8\r\n  [20] .data.rel.ro      PROGBITS        00000000002b7340 0b7340 003a10 00  WA  0   0 32\r\n  [21] .dynamic          DYNAMIC         00000000002bad50 0bad50 000210 10  WA  4   0  8\r\n  [22] .got              PROGBITS        00000000002baf60 0baf60 0000a0 08  WA  0   0  8\r\n  [23] .got.plt          PROGBITS        00000000002bb000 0bb000 000660 08  WA  0   0  8\r\n  [24] .data             PROGBITS        00000000002bb660 0bb660 0001d8 00  WA  0   0 32\r\n  [25] .bss              NOBITS          00000000002bb840 0bb838 0044b8 00  WA  0   0 32\r\n  [26] .comment          PROGBITS        0000000000000000 0bb838 000024 01  MS  0   0  1\r\n  [27] .shstrtab         STRTAB          0000000000000000 0bb85c 000101 00      0   0  1\r\n```"}}