]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/elf.c
sh_addralign inconsistent with sh_addr
authorAlan Modra <amodra@gmail.com>
Wed, 4 Mar 2020 04:56:00 +0000 (15:26 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Mar 2020 05:01:03 +0000 (15:31 +1030)
commit233bf4f847b136705247e2f7f11bae41c72448a4
tree5bf74dab37da45fc4991e9808561bfa77579bbd6
parent1039fd9ac2a57b7634f60a66ea51e64f5ff69251
sh_addralign inconsistent with sh_addr

The ELF gABI says in part of sh_addralign:  "The value of sh_addr must
be congruent to 0, modulo the value of sh_addralign."

* elf.c (elf_fake_sections): Ensure sh_addralign is such that
sh_addr mod sh_addalign is zero.
bfd/ChangeLog
bfd/elf.c