package/binutils: xtensa: fix shrink_dynamic_reloc_sections
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 29 Mar 2019 01:51:33 +0000 (18:51 -0700)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 29 Mar 2019 07:01:55 +0000 (08:01 +0100)
commit881dae3a9c086ee3880834e10f72baea221f4945
tree1c41917d61c2d94f5768cce6aeeb774c773a402c
parent198b4cff10aa7e25bac28b54721638119e8fd1f1
package/binutils: xtensa: fix shrink_dynamic_reloc_sections

This fixes the following build error caused by link-time relaxation
removing copies of literals that reference undefined weak symbols with
PLT entries created due to -rdynamic option passed to g++ link command:

  ld: BFD (GNU Binutils) 2.31.1 internal error, aborting at
  elf32-xtensa.c:3292 in elf_xtensa_finish_dynamic_sections

Fixes:
http://autobuild.buildroot.net/results/d41/d41aae8a448c316187f9fbde40f1d077182bb244/
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/binutils/2.31.1/0015-bfd-xtensa-fix-shrink_dynamic_reloc_sections-for-exp.patch [new file with mode: 0644]
package/binutils/2.32/0003-bfd-xtensa-fix-shrink_dynamic_reloc_sections-for-exp.patch [new file with mode: 0644]