Preserve all mapping symbols in ARM and AArch64 object files.
authorNick Clifton <nickc@redhat.com>
Wed, 29 Jun 2016 10:17:40 +0000 (11:17 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 29 Jun 2016 10:17:40 +0000 (11:17 +0100)
commitd691934d08a4132506a19ac8d7565f1a0461a80a
treefe66ef6fe44ace2691c7d25cfbc53a2e860d0eac
parent6844c0ccea23157d9f965524d02f656a9f89f48e
Preserve all mapping symbols in ARM and AArch64 object files.

bfd * elfnn-aarch64.c (is_aarch64_mapping_symbol): New function.
Returns TRUE for AArch64 mapping symbols.
(elfNN_aarch64_backend_symbol_processing): New function.  Marks
mapping symbols as precious in object files so that they will not
be stripped.
(elf_backend_symbol_processing): Define.

* elf32-arm.c (is_arm_mapping_symbol): New function.  Returns TRUE
for ARM mapping symbols.
(elf32_arm_backend_symbol_processing): Make use of the new function.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elfnn-aarch64.c