[Issue 13117] Executable size of hello world explodes from 472K to 2.7M

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 13 23:29:35 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13117

--- Comment #4 from dbr <dbugreporter at gmail.com> ---
Ok here's more info then:

% uname -a
Linux laptop 3.11.0-20-generic #35-Ubuntu SMP Fri May 2 21:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

% file hello
hello: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked
(uses shared libs), for GNU/Linux 2.6.24,
BuildID[sha1]=0x6dbff8d6e93645b94b809ad602141ecf49ed261c, not stripped

% objdump -h hello | egrep -v 'CONTENTS|ALLOC'

hello:     file format elf64-x86-64

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .interp       0000001c  0000000000400200  0000000000400200  00000200  2**0
  1 .note.ABI-tag 00000020  000000000040021c  000000000040021c  0000021c  2**2
  2 .note.gnu.build-id 00000024  000000000040023c  000000000040023c  0000023c 
2**2
  3 .gnu.hash     00003574  0000000000400260  0000000000400260  00000260  2**3
  4 .dynsym       0000b6a0  00000000004037d8  00000000004037d8  000037d8  2**3
  5 .dynstr       0001eb0b  000000000040ee78  000000000040ee78  0000ee78  2**0
  6 .gnu.version  00000f38  000000000042d984  000000000042d984  0002d984  2**1
  7 .gnu.version_r 00000090  000000000042e8c0  000000000042e8c0  0002e8c0  2**3
  8 .rela.dyn     00000168  000000000042e950  000000000042e950  0002e950  2**3
  9 .rela.plt     00000648  000000000042eab8  000000000042eab8  0002eab8  2**3
 10 .init         0000001a  000000000042f100  000000000042f100  0002f100  2**2
 11 .plt          00000440  000000000042f120  000000000042f120  0002f120  2**4
 12 .text         00026f12  000000000042f560  000000000042f560  0002f560  2**4
 13 .fini         00000009  0000000000456474  0000000000456474  00056474  2**2
 14 .rodata       000052b0  0000000000456480  0000000000456480  00056480  2**4
 15 .deh_eh       000002d0  000000000045b730  000000000045b730  0005b730  2**3
 16 .minfo        00000108  000000000045ba00  000000000045ba00  0005ba00  2**3
 17 .eh_frame_hdr 0000003c  000000000045bb08  000000000045bb08  0005bb08  2**2
 18 .eh_frame     000000e4  000000000045bb48  000000000045bb48  0005bb48  2**3
 19 .tdata        00000010  000000000065cbe0  000000000065cbe0  0025cbe0  2**4
 20 .tbss         00000040  000000000065cbf0  000000000065cbf0  0025cbf0  2**4
 21 .init_array   00000010  000000000065cbf0  000000000065cbf0  0025cbf0  2**3
 22 .fini_array   00000020  000000000065cc00  000000000065cc00  0025cc00  2**3
 23 .jcr          00000008  000000000065cc20  000000000065cc20  0025cc20  2**3
 24 .data.rel.ro  00004170  000000000065cc30  000000000065cc30  0025cc30  2**4
 25 .dynamic      00000200  0000000000660da0  0000000000660da0  00260da0  2**3
 26 .got          00000060  0000000000660fa0  0000000000660fa0  00260fa0  2**3
 27 .got.plt      00000230  0000000000661000  0000000000661000  00261000  2**3
 28 .data         00006770  0000000000661230  0000000000661230  00261230  2**4
 29 .bss          00000730  00000000006679a0  00000000006679a0  002679a0  2**4
 30 .comment      00000071  0000000000000000  0000000000000000  002679a0  2**0

The sizes of all sections amount to 0x66fad which is only 421805 bytes. The
rest of the 2.7 megabytes seem to be between sections .eh_frame and .tdata.

What could be there?

--


More information about the Digitalmars-d-bugs mailing list