This is the mail archive of the gcc-help@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: converting function pointers to/from object pointers


On Mo, Aug 24, 2015 at 04:06:47 -0500, Segher Boessenkool wrote:
> On Mon, Aug 24, 2015 at 09:48:38PM +0200, Josef Wolf wrote:
> > So the question is: how can I ensure the ordering of the functions?
> 
> There is -fno-toplevel-reorder.

When I originally stumbled over the problem (about 5 years ago), I tried to
fix it with -fno-reorder-functions. But that did not have the desired effect.


First question is: why are functions reordered when -fno-reorder-functions is
given? What am I missing here?


Now, when I use -no-toplevel.reorder, the linker complains that .text.startup
and .text.unlikely are not loaded

So, how comes that omitting toplevel-reorder creates sections for reordering?


-- 
Josef Wolf
jw@raven.inka.de


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