This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: linker garbage collector





> On Jul 30, 2015, at 4:13 AM, Sivaprasad <sivaprasad.pv@redpinesignals.com> wrote:
> 
> I have complied my project with -ffunction-sections -fdata-sections compiler options (observed separate section generated for each function) and trying to use --gc-sections option while linking.No changes in executable size, unused functions are still present in executable file.
> 
> Binutils version used : 2.23
> 
> Please help me, to resolve this issue.

You can look at the linker map to understand why the unused sections are being brought in still. 

Thanks,
Andrew

> 
> Thanks,
> Siva prasad
> 
> 
> 


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