https://sourceware.org/bugzilla/show_bug.cgi?id=25665

--- Comment #3 from Tamar Christina <tnfchris at sourceware dot org> ---
This is a difficult one since I don't think we can solve the general problem
without having some compiler support here.

Do you in your big text section is it really one big function like your
example?

Or is it a lot of tiny functions?

if it's the latter then in principle we could put the stubs after every section
and if you use `-ffunction-sections` it should work. but that requires me to be
able to restart linking since I can't tell if a stub is needed till the very
end. But BFD doesn't really allow this. Once you exit the resize phase and are
in the final stages you can't really go back.

So compiler support is the only realistic way forward.. I'll make a proposal
for it and see what comes out of it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to