avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and


From: Weddington, Eric
Subject: Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?
Date: Mon, 18 Jun 2012 18:23:52 +0000

> -----Original Message-----
> From: address@hidden [mailto:avr-
> address@hidden On Behalf Of Georg-
> Johann Lay
> Sent: Monday, June 18, 2012 11:31 AM
> To: Bob Paddock
> Cc: AVR-GCC
> Subject: Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable()
> and .signature?
> 

> > LTO has removed .signature, resulting in avr-objdump giving an error
> > about .signature not being found.
> 
> I don't know about the guts of .signature.
> 
> Maybe it has the wrong section flags or needs a KEEP in the linker
> script. If it's not referenced from C code (is it?) then it can
> be thrown away. If there is an object in .signature that is
> needed but never used, use __attribute__((__used__)) to indicate
> it is used despite not referenced.
> 

IIRC, It's not referenced from the C code, but we would like to keep it in the 
final ELF file.

Maybe the __used__ attribute is what is needed. That, and the linker script 
should be double checked.

Eric



reply via email to

[Prev in Thread] Current Thread [Next in Thread]