projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb: add target_ops::supports_displaced_step
[deliverable/binutils-gdb.git]
/
bfd
/
elf64-mips.c
diff --git
a/bfd/elf64-mips.c
b/bfd/elf64-mips.c
index 7c9916f67fc0a0b3bf6b78bf8e406f8091d72356..a07c39f1fd13df86314540945c8998c7bd8a8e91 100644
(file)
--- a/
bfd/elf64-mips.c
+++ b/
bfd/elf64-mips.c
@@
-1,5
+1,5
@@
/* MIPS-specific support for 64-bit ELF
/* MIPS-specific support for 64-bit ELF
- Copyright (C) 1996-20
18
Free Software Foundation, Inc.
+ Copyright (C) 1996-20
20
Free Software Foundation, Inc.
Ian Lance Taylor, Cygnus Support
Linker support added by Mark Mitchell, CodeSourcery, LLC.
<mark@codesourcery.com>
Ian Lance Taylor, Cygnus Support
Linker support added by Mark Mitchell, CodeSourcery, LLC.
<mark@codesourcery.com>
@@
-4010,15
+4010,12
@@
mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect,
int entsize;
bfd_boolean rela_p;
int entsize;
bfd_boolean rela_p;
- allocated = bfd_malloc (rel_hdr->sh_size);
+ if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0)
+ return FALSE;
+ allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size);
if (allocated == NULL)
return FALSE;
if (allocated == NULL)
return FALSE;
- if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0
- || (bfd_bread (allocated, rel_hdr->sh_size, abfd)
- != rel_hdr->sh_size))
- goto error_return;
-
native_relocs = allocated;
entsize = rel_hdr->sh_entsize;
native_relocs = allocated;
entsize = rel_hdr->sh_entsize;
@@
-4165,14
+4162,11
@@
mips_elf64_slurp_one_reloc_table (bfd *abfd, asection *asect,
}
}
}
}
- if (allocated != NULL)
- free (allocated);
-
+ free (allocated);
return TRUE;
error_return:
return TRUE;
error_return:
- if (allocated != NULL)
- free (allocated);
+ free (allocated);
return FALSE;
}
return FALSE;
}
@@
-4772,6
+4766,7
@@
const struct elf_size_info mips_elf64_size_info =
#define elf_backend_gc_mark_hook _bfd_mips_elf_gc_mark_hook
#define elf_backend_copy_indirect_symbol \
_bfd_mips_elf_copy_indirect_symbol
#define elf_backend_gc_mark_hook _bfd_mips_elf_gc_mark_hook
#define elf_backend_copy_indirect_symbol \
_bfd_mips_elf_copy_indirect_symbol
+#define elf_backend_hide_symbol _bfd_mips_elf_hide_symbol
#define elf_backend_ignore_discarded_relocs \
_bfd_mips_elf_ignore_discarded_relocs
#define elf_backend_mips_irix_compat elf64_mips_irix_compat
#define elf_backend_ignore_discarded_relocs \
_bfd_mips_elf_ignore_discarded_relocs
#define elf_backend_mips_irix_compat elf64_mips_irix_compat
This page took
0.027925 seconds
and
4
git commands to generate.