This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [lto] PATCH: Add support for referencing types from function bodies


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


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