aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJiong Wang <jiong.wang@arm.com>2015-03-10 11:15:13 +0000
committerJiong Wang <jiong.wang@arm.com>2015-03-10 11:15:13 +0000
commita5721eddd18f4ba11adbc9bef0c6cb49a0cb69b4 (patch)
tree91e270d32f4b1ee12b6723e1b9d1c6210cbc3b63 /bfd
parent73f43896e3bfcb090552f359422857a0bedd77f6 (diff)
downloadgdb-a5721eddd18f4ba11adbc9bef0c6cb49a0cb69b4.zip
gdb-a5721eddd18f4ba11adbc9bef0c6cb49a0cb69b4.tar.gz
gdb-a5721eddd18f4ba11adbc9bef0c6cb49a0cb69b4.tar.bz2
[ARM] PR ld/16572: Remove EF_ARM_HASENTRY flag
bfd/ 2015-03-10 Yuri Gribov <y.gribov@samsung.arm> PR ld/16572 * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for ELF_ARM_HASENTRY. (elf32_arm_print_private_bfd_data): Likewise. binutils/ 2015-03-10 Yuri Gribov <y.gribov@samsung.arm> PR ld/16572 * readelf.c: Remove support for ELF_ARM_HASENTRY. include/ 2015-03-10 Matthew Wahab <matthew.wahab@arm.com> PR ld/16572 * elf/arm.h (EF_ARM_HASENTRY): Remove.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/elf32-arm.c17
2 files changed, 8 insertions, 16 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index a370597..a6fbe59 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,10 @@
+2015-03-10 Yuri Gribov <y.gribov@samsung.arm>
+
+ PR ld/16572
+ * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for
+ ELF_ARM_HASENTRY.
+ (elf32_arm_print_private_bfd_data): Likewise.
+
2015-03-06 Nick Clifton <nickc@redhat.com>
PR binutils/17765
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index c9e314e..113f4eb 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -8234,18 +8234,6 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto,
if (r_type != howto->type)
howto = elf32_arm_howto_from_type (r_type);
- /* If the start address has been set, then set the EF_ARM_HASENTRY
- flag. Setting this more than once is redundant, but the cost is
- not too high, and it keeps the code simple.
-
- The test is done here, rather than somewhere else, because the
- start address is only set just before the final link commences.
-
- Note - if the user deliberately sets a start address of 0, the
- flag will not be set. */
- if (bfd_get_start_address (output_bfd) != 0)
- elf_elfheader (output_bfd)->e_flags |= EF_ARM_HASENTRY;
-
eh = (struct elf32_arm_link_hash_entry *) h;
sgot = globals->root.sgot;
local_got_offsets = elf_local_got_offsets (input_bfd);
@@ -12394,10 +12382,7 @@ elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr)
if (flags & EF_ARM_RELEXEC)
fprintf (file, _(" [relocatable executable]"));
- if (flags & EF_ARM_HASENTRY)
- fprintf (file, _(" [has entry point]"));
-
- flags &= ~ (EF_ARM_RELEXEC | EF_ARM_HASENTRY);
+ flags &= ~EF_ARM_RELEXEC;
if (flags)
fprintf (file, _("<Unrecognised flag bits set>"));