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


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.


Thanks,

--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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