Re: converting function pointers to/from object pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux