aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfxx-mips.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-12-09 14:32:22 +1030
committerAlan Modra <amodra@gmail.com>2014-12-10 09:55:31 +1030
commit28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8 (patch)
tree6aaf117e0769bdcf3eb2c5a989116b7543928344 /bfd/elfxx-mips.h
parent4e3272393ff1ab2c07d9fa209d2ae82954f7954c (diff)
downloadfsf-binutils-gdb-28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8.zip
fsf-binutils-gdb-28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8.tar.gz
fsf-binutils-gdb-28dbcedc7b1282b93c3f25c4e42ae71b44e8e2a8.tar.bz2
Don't sort ld -r relocs for mips
HI16/LO16 are deliberately put adjacent, which might mean relocs are then not sorted by r_offset. See tc-mips.c:mips_frob_file. Don't undo the HI16/LO16 sorting. PR 17666 * elf-bfd.h (struct elf_backend_data): Add sort_relocs_p. * elfxx-target.h (elf_backend_sort_relocs_p): Define. (elfNN_bed): Init new field. * elflink.c (elf_link_adjust_relocs): Conditionally sort. (bfd_elf_final_link): Control sorting of relocs. * elfxx-mips.c (_bfd_mips_elf_sort_relocs_p): New function. * elfxx-mips.h (_bfd_mips_elf_sort_relocs_p): Declare. * elf32-mips.c (elf_backend_sort_relocs_p): Define. * elf64-mips.c (elf_backend_sort_relocs_p): Define.
Diffstat (limited to 'bfd/elfxx-mips.h')
-rw-r--r--bfd/elfxx-mips.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfxx-mips.h b/bfd/elfxx-mips.h
index 8f5c53e..0605447 100644
--- a/bfd/elfxx-mips.h
+++ b/bfd/elfxx-mips.h
@@ -67,6 +67,8 @@ extern bfd_boolean _bfd_mips_vxworks_finish_dynamic_symbol
Elf_Internal_Sym *);
extern bfd_boolean _bfd_mips_elf_finish_dynamic_sections
(bfd *, struct bfd_link_info *);
+extern bfd_boolean _bfd_mips_elf_sort_relocs_p
+ (asection *);
extern void _bfd_mips_elf_final_write_processing
(bfd *, bfd_boolean);
extern int _bfd_mips_elf_additional_program_headers