oh yeah...

Jeff Sturm jsturm@one-point.com
Thu Feb 19 19:26:00 GMT 2004


On Thu, 19 Feb 2004, Adam Megacz wrote:
> The .text segment is *just* machine code, right?  Or is there anything
> else in there?

$ readelf -l libgcj.so
...
Program Headers:
  Type       Offset   VirtAddr   PhysAddr   FileSiz  MemSiz   Flg Align
  LOAD       0x000000 0x00000000 0x00000000 0x6e7598 0x6e7598 R E 0x1000
...
 Section to Segment mapping:
  Segment Sections...
   00     .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn
.rel.plt .init .plt .text .fini .rodata .eh_frame_hdr

Of the 7.5MB "text" segment in libgcj.so, about a third is machine code.
String/symbol tables, read-only data, EH, the PLT, etc. make up the rest.

Static executables don't need some of that junk though...

Jeff



More information about the Java mailing list