This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch,avr] Fix PR14058
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: binutils at sourceware dot org
- Cc: Eric Weddington <eric dot weddington at atmel dot com>, Denis Chertykov <chertykov at gmail dot com>, Jan Waclawek <konfera at efton dot sk>
- Date: Tue, 24 Jul 2012 20:46:36 +0200
- Subject: [Patch,avr] Fix PR14058
This is a repost of a patch supplied by Jan Waclawek in [1].
I don't know if Jan has c copy right assignment in file, but the
patch should be small enough to apply it without CA on file.
For the ChangeLog please use Jan Waclawek <konfera at efton dot sk>
Johann
[1]
http://sourceware.org/bugzilla/show_bug.cgi?id=14058#c8
ld/
PR 14058
* emultempl/avrelf.em (avr_elf_after_allocation): Call
elf32_avr_size_stubs with is_prealloc_run as TRUE.
diff --git a/ld/emultempl/avrelf.em b/ld/emultempl/avrelf.em
index 7f8c05e..bfb9d5c 100644
--- a/ld/emultempl/avrelf.em
+++ b/ld/emultempl/avrelf.em
@@ -152,7 +152,7 @@ avr_elf_after_allocation (void)
{
/* If relaxing, elf32_avr_size_stubs will be called from
elf32_avr_relax_section. */
- if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, FALSE))
+ if (!elf32_avr_size_stubs (link_info.output_bfd, &link_info, TRUE))
einfo ("%X%P: can not size stub section: %E\n");
}