PR16005, avr linker crash on a particular instruction sequence with --relax
authorAlan Modra <amodra@gmail.com>
Fri, 29 Jul 2022 07:22:52 +0000 (16:52 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 29 Jul 2022 07:55:35 +0000 (17:25 +0930)
commitb875e9c93df9f30efb34a75b9379490c03ec4d4b
tree3815a8b332ff0225b2627dbca78ebafc3b4e7faf
parente4e1fcce52befa56718bea6ae519d1b762b5cd67
PR16005, avr linker crash on a particular instruction sequence with --relax

It's possible for relax_delete_bytes to be called with section
contents NULL, as demonstrated by the testcase in this PR.

PR 16005
* elf32-avr.c (elf32_avr_relax_delete_bytes): Get section contents
if not already available.
bfd/elf32-avr.c