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/testsuite] Add PR number to KFAIL in gdb.opt/inline-cmds.exp
[deliverable/binutils-gdb.git]
/
bfd
/
i386lynx.c
diff --git
a/bfd/i386lynx.c
b/bfd/i386lynx.c
index 777fd3d72ebb0e6798b35b0ba8a1c2ad6e1886fd..8cffd24235b70388d1690830a7cd3978fa004caa 100644
(file)
--- a/
bfd/i386lynx.c
+++ b/
bfd/i386lynx.c
@@
-399,7
+399,7
@@
NAME(lynx,slurp_reloc_table) (bfd *abfd,
bfd_set_error (bfd_error_invalid_operation);
return FALSE;
bfd_set_error (bfd_error_invalid_operation);
return FALSE;
-doit:
+
doit:
if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0)
return FALSE;
each_size = obj_reloc_entry_size (abfd);
if (bfd_seek (abfd, asect->rel_filepos, SEEK_SET) != 0)
return FALSE;
each_size = obj_reloc_entry_size (abfd);
@@
-411,20
+411,13
@@
doit:
if (!reloc_cache && count != 0)
return FALSE;
if (!reloc_cache && count != 0)
return FALSE;
- relocs =
bfd_alloc (abfd
, reloc_size);
+ relocs =
_bfd_alloc_and_read (abfd, reloc_size
, reloc_size);
if (!relocs && reloc_size != 0)
{
free (reloc_cache);
return FALSE;
}
if (!relocs && reloc_size != 0)
{
free (reloc_cache);
return FALSE;
}
- if (bfd_bread (relocs, reloc_size, abfd) != reloc_size)
- {
- bfd_release (abfd, relocs);
- free (reloc_cache);
- return FALSE;
- }
-
if (each_size == RELOC_EXT_SIZE)
{
struct reloc_ext_external *rptr = (struct reloc_ext_external *) relocs;
if (each_size == RELOC_EXT_SIZE)
{
struct reloc_ext_external *rptr = (struct reloc_ext_external *) relocs;
This page took
0.023197 seconds
and
4
git commands to generate.