This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: oh yeah...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]