This is the mail archive of the
mailing list for the GCC project.
Re: [lto] PATCH: Add support for referencing types from function bodies
Daniel Jacobowitz wrote:
Mark, I don't think you've got a way out of this: if you want ld -r to
work, you're going to have to process at least some relocations. You
can limit the number of relocations by intelligent choices, I expect;
having one per label could be seriously bad for performance, so maybe
one per function or something like that. Basically, replace your
"section number" by a reference to a label in that section.
OK. We'll cross that bridge after we make it work without ld -r; it
will be a relatively minor change on both sides of the interface to
replace the section number with a label.
(650) 331-3385 x713