bfd/elfnn-aarch64.c: Remove elfNN_aarch64_section_flags
authorWill Newton <will.newton@linaro.org>
Mon, 14 Apr 2014 12:37:51 +0000 (13:37 +0100)
committerWill Newton <will.newton@linaro.org>
Tue, 22 Apr 2014 09:47:30 +0000 (10:47 +0100)
This function seems to be a left over from some previous
functionality that no longer exists - the comment above seems to
make no sense with the current code. Remove the function as it
breaks handling of SystemTap static probe note sections.

bfd/ChangeLog:

2014-04-22  Will Newton  <will.newton@linaro.org>

* elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove
function.  (elf_backend_section_flags): Remove define.

bfd/ChangeLog
bfd/elfnn-aarch64.c

index 6ac864875a243e1e024acda1416a746622e7ccb3..b898da818888ae7a8dcd81e5cbdec0e043726599 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-22  Will Newton  <will.newton@linaro.org>
+
+       * elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove
+       function.  (elf_backend_section_flags): Remove define.
+
 2014-04-21  Richard Henderson  <rth@redhat.com>
 
        * elf64-alpha.c (elf64_alpha_size_got_sections): New may_merge
index a251698d9d8cfeab7da2b3d72b83c84ee6c156f2..d5b0dd1071b4e271a29798cb2e47f1390880f689 100644 (file)
@@ -5499,17 +5499,6 @@ elfNN_aarch64_reloc_type_class (const struct bfd_link_info *info ATTRIBUTE_UNUSE
     }
 }
 
-/* Set the right machine number for an AArch64 ELF file.  */
-
-static bfd_boolean
-elfNN_aarch64_section_flags (flagword *flags, const Elf_Internal_Shdr *hdr)
-{
-  if (hdr->sh_type == SHT_NOTE)
-    *flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_SAME_CONTENTS;
-
-  return TRUE;
-}
-
 /* Handle an AArch64 specific section when reading an object file.  This is
    called when bfd_section_from_shdr finds a section with an unknown
    type.  */
@@ -7286,9 +7275,6 @@ const struct elf_size_info elfNN_aarch64_size_info =
 #define elf_backend_reloc_type_class           \
   elfNN_aarch64_reloc_type_class
 
-#define elf_backend_section_flags              \
-  elfNN_aarch64_section_flags
-
 #define elf_backend_section_from_shdr          \
   elfNN_aarch64_section_from_shdr
 
This page took 0.035978 seconds and 4 git commands to generate.