This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] PATCH: Add support for referencing types from function bodies
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, zadeck at naturalbridge dot com
- Date: Mon, 4 Sep 2006 01:16:29 -0400
- Subject: Re: [lto] PATCH: Add support for referencing types from function bodies
- References: <200609040455.k844to0r011386@sparrowhawk.codesourcery.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Sep 03, 2006 at 09:55:50PM -0700, Mark Mitchell wrote:
> This patch provides an interface for doing that. During emission of
> the function-body representation, when a global reference is required,
> call one of the lto_*_ref functions (e.g., lto_type_ref), and emit the
> reference returned. Then, when reading a function body, call
If the references are relative to .debug_info start, then it would
be desirable somewhere in the .lto section with the function bodies
to have an ELF relocation against that .debug_info start, otherwise ld -r
will make it impossible to read it correctly again.
Jakub