This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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");
     }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]