Objcopy interleave fails if section address not multiple of interleave.
authorJim Wilson <jimw@sifive.com>
Wed, 6 Dec 2017 18:34:36 +0000 (10:34 -0800)
committerJim Wilson <jimw@sifive.com>
Wed, 6 Dec 2017 18:34:36 +0000 (10:34 -0800)
commit1c9c7ce078427891a94dc7604ce9e62175ebfda5
tree43462daac8331919898ef39d5eba799b1f27217f
parent7cc244debb587d0f6179d80b5ca9b0ee86e9ab72
Objcopy interleave fails if section address not multiple of interleave.

PR 22465
binutils/
* objcopy.c (copy_section): New local extra.  If isection->lma not
exactly divisible by interleave, then bias from.  Also adjust
osection->lma if necessary.

ld/
* testsuite/ld-elf/interleave-0.d, testsuite/ld-elf/interleave-4.d,
* testsuite/ld-elf/interleave.ld, testsuite/ld-elf/interleave.s: New.
binutils/ChangeLog
binutils/objcopy.c
ld/ChangeLog
ld/testsuite/ld-elf/interleave-0.d [new file with mode: 0644]
ld/testsuite/ld-elf/interleave-4.d [new file with mode: 0644]
ld/testsuite/ld-elf/interleave.ld [new file with mode: 0644]
ld/testsuite/ld-elf/interleave.s [new file with mode: 0644]