[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Warning from avr-gcc
From: |
Bob von Knobloch |
Subject: |
Re: Warning from avr-gcc |
Date: |
Wed, 3 Mar 2021 16:47:02 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 23/02/2021 02:31, Matt wrote:
I wish I had the answer.
If you have files that compiled before (simple).. You might try
corrupting them in a small way.. Do a recompile on the copied file..
Or, if you are making your program from modules, kick one out to isolate
what is causing the failure.
At a loss.. I'm not working with that stuff yet (too many computer
crashes)!
---
matt
(408) 638 - 0273
On 2021-02-22 21:12, Bob von Knobloch wrote:
Hi,
it's just a warning, but could someone explain what:
"/usr/lib64/gcc/avr/7/ld: warning: -z relro ignored"
is trying to tell me. It appeared with a newer compiler version.
Thanks,
Bob
OK, it it a feature to make relocated code read-only under certain
circumstances (does not apply to my AVR Mega1284). It seems to be built
into the avr-ld linker program.
issuing "avr-ld" gives:
avr-ld: warning: -z relro ignored
avr-ld: no input files
So the linker seems to have this default.
I suspected it because an old program compiled with avr-gcc 4.9.2 does
not run when compiled with version 7.4.0, although it compiles without
error. I will have to dig deeper.
Cheers,
Bob
--
The Sun is out, the sky is blue, it's time to drive the MR2.
- Re: Warning from avr-gcc,
Bob von Knobloch <=