Re: -ffuntion-sections doesn't work

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

 



I guess the problem is with the linker. Maybe compiler generates an object
file in which functions are in differents sections but linker reorders
sections in order to generate the executable file. Is it correct?.


Andrew Haley-2 wrote:
> 
> zeta writes:
>  
>  > I'm using -ffunction-sections flag in order to separate each program's
>  > function in a different section. When I check the executable file with
>  > objdump command, functions are placed in  the .text section as a normal
>  > compilation without -ffunction-sections flag. Is there any requirement
> to
>  > use this flag? 
> 
> It usually works.  Tell us what you did.  Be precise.
> 
> Andrew.
> 
> 

-- 
View this message in context: http://www.nabble.com/-ffuntion-sections-doesn%27t-work-tf3558649.html#a9938964
Sent from the gcc - Help mailing list archive at Nabble.com.


[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