[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature? |
Date: |
Tue, 19 Jun 2012 08:59:45 +0200 (MET DST) |
Bob Paddock <address@hidden> wrote:
> Added __used__ in <avr\signature.h> and avr-objdump -s -j .signature
> is working again:
(Btw., use <avr/signature.h> rather than the backslash, that makes
your projects more portable. MS-DOS understands the forward slash
since the days of version 3.x. It's only command.com and cmd.exe that
don't understand it.9
Thanks for testing, I added the "used" attribute in avr-libc. I also
changed the spelling of the "section" attribute to __section__ in
order to force it into the implementation namespace.
> const unsigned char __signature[3] __attribute__((__used__))
> __attribute__((section (".signature"))) =
> { SIGNATURE_2, SIGNATURE_1, SIGNATURE_0 };
Btw., you can combine several attributes like:
.... __attribute__((__used__, __section__("foo")))
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Bob Paddock, 2012/06/18
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Weddington, Eric, 2012/06/18
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Georg-Johann Lay, 2012/06/18
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Bob Paddock, 2012/06/18
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Georg-Johann Lay, 2012/06/18
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Bob Paddock, 2012/06/19
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Georg-Johann Lay, 2012/06/21
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Bob Paddock, 2012/06/26
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Georg-Johann Lay, 2012/06/30
- Re: [avr-gcc-list] Link Time Optimization vs __builtin_unreachable() and .signature?, Bob Paddock, 2012/06/30