From 6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf Mon Sep 17 00:00:00 2001 From: Aaron Merey Date: Fri, 2 Sep 2022 14:16:30 -0400 Subject: bfd: Add bfd_find_nearest_line_with_alt bfd_find_nearest_line_with_alt functions like bfd_find_nearest_line with the addition of a parameter for specifying the filename of a supplementary debug file such as one referenced by .gnu_debugaltlink or .debug_sup. This patch focuses on implementing bfd_find_nearest_line_with_alt support for ELF/DWARF2 .gnu_debugaltlink. For other targets this function simply sets the invalid_operation bfd_error. --- bfd/elf64-mips.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/elf64-mips.c') diff --git a/bfd/elf64-mips.c b/bfd/elf64-mips.c index c2c6604..e3ee0b9 100644 --- a/bfd/elf64-mips.c +++ b/bfd/elf64-mips.c @@ -4792,6 +4792,8 @@ const struct elf_size_info mips_elf64_size_info = #define bfd_elf64_bfd_is_target_special_symbol \ _bfd_mips_elf_is_target_special_symbol #define bfd_elf64_find_nearest_line _bfd_mips_elf_find_nearest_line +#define bfd_elf64_find_nearest_line_with_alt \ + _bfd_mips_elf_find_nearest_line_with_alt #define bfd_elf64_find_inliner_info _bfd_mips_elf_find_inliner_info #define bfd_elf64_new_section_hook _bfd_mips_elf_new_section_hook #define bfd_elf64_set_section_contents _bfd_mips_elf_set_section_contents -- cgit v1.1