This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: oh yeah...
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Adam Megacz <adam at megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 19 Feb 2004 14:26:50 -0500 (EST)
- Subject: 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