-ffuntion-sections doesn't work

zeta zoraidahidalgo@gmail.com
Wed Apr 11 12:57:00 GMT 2007


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.



More information about the Gcc-help mailing list