This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: gcj executable size reduction?
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Jeff Sturm <jsturm at one-point dot com>
- Cc: "Boehm, Hans" <hans dot boehm at hp dot com>, "'Per Bothner'" <per at bothner dot com>, java at gcc dot gnu dot org
- Date: Tue, 20 Apr 2004 09:47:40 -0400
- Subject: Re: gcj executable size reduction?
- References: <Pine.LNX.4.44.0404192136410.24954-100000@ops2.one-point.com>
Jeff Sturm wrote:
Unfortunately, the otherwise static and read-only DWARF2 EH info
contains a reference to the global function __gcj_personality_v0 in
every CIE entry. That requires a runtime relocation so its probably why
the EH info ends up in a writable section.
Unless I am mistaken, in recent gcc builds .eh_frame *is* mapped to a
readonly segment. The personality routine uses a pcrel encoding which
does not need relocation.
Thanks for clearing this up - I must have been looking at non-PIC
output. Still, I wonder why the GC sees it as a wrtitable section?
Regards
Bryce.