diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2015-06-26 04:28:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2015-06-26 04:28:54 +0000 |
commit | 8eb406b322b86ea1e484be87981b7a237552d131 (patch) | |
tree | bfbb1285f7e3598a24e9628daa55564e399fe4dd /gnu | |
parent | 4aa9aa693533f8fbd8645a0f9b7e3cc2a29e7bbe (diff) |
Avoid an assertion failure in elf32_arm_size_dynamic_sections() when
building a static binary out of PIE objects; similar to the logic
found on other platforms, for some reason arm was lacking this fix.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils-2.17/bfd/elf32-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils-2.17/bfd/elf32-arm.c b/gnu/usr.bin/binutils-2.17/bfd/elf32-arm.c index f64f5d6feee..f16ec58c529 100644 --- a/gnu/usr.bin/binutils-2.17/bfd/elf32-arm.c +++ b/gnu/usr.bin/binutils-2.17/bfd/elf32-arm.c @@ -6637,7 +6637,7 @@ elf32_arm_size_dynamic_sections (bfd * output_bfd ATTRIBUTE_UNUSED, if (elf_hash_table (info)->dynamic_sections_created) { /* Set the contents of the .interp section to the interpreter. */ - if (info->executable) + if (info->executable && !info->static_link) { s = bfd_get_section_by_name (dynobj, ".interp"); BFD_ASSERT (s != NULL); |