diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2017-07-05 13:57:28 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2017-07-05 13:57:28 +0000 |
commit | 98f9d0ca902c48b58d3d9adee53c3a1800fd3e6d (patch) | |
tree | b40fcdc59b02e071b810915d50a83ea9a4ea7524 /gcc/config.in | |
parent | e60226ffa0cc0eff39141a4954a506484c17fda4 (diff) |
Graceful degrade if Binutils PR21472 is not available.
gcc/
Graceful degrade if Binutils PR21472 is not available.
PR target/81072
* configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
.rodata in flash test fails.
(HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
* confgure: Regenerate.
* config.in: Regenerate.
* config/avr/avr.c (avr_asm_named_section)
[HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
__do_copy_data for stuff in .rodata if flash_pm_offset = 0.
(avr_asm_init_sections): Same.
From-SVN: r250000
Diffstat (limited to 'gcc/config.in')
-rw-r--r-- | gcc/config.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/config.in b/gcc/config.in index bf2aa7b2e7d..44c7a68eaa8 100644 --- a/gcc/config.in +++ b/gcc/config.in @@ -1460,6 +1460,13 @@ #endif +/* Define if your default avr linker script for avrxmega3 leaves .rodata in + flash. */ +#ifndef USED_FOR_TARGET +#undef HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH +#endif + + /* Define if your linker supports -z bndplt */ #ifndef USED_FOR_TARGET #undef HAVE_LD_BNDPLT_SUPPORT |