projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatic date update in version.in
[deliverable/binutils-gdb.git]
/
bfd
/
coff-rs6000.c
diff --git
a/bfd/coff-rs6000.c
b/bfd/coff-rs6000.c
index 1cc708ce1b34071a0dbbff02331cad2c43f4929d..51fab9f0536309bcc8b952e6e0b5d9eabd4f5d57 100644
(file)
--- a/
bfd/coff-rs6000.c
+++ b/
bfd/coff-rs6000.c
@@
-38,7
+38,7
@@
extern bfd_boolean _bfd_xcoff_is_local_label_name (bfd *, const char *);
extern reloc_howto_type *_bfd_xcoff_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
extern bfd_boolean _bfd_xcoff_slurp_armap (bfd *);
extern reloc_howto_type *_bfd_xcoff_reloc_type_lookup
(bfd *, bfd_reloc_code_real_type);
extern bfd_boolean _bfd_xcoff_slurp_armap (bfd *);
-extern
const bfd_target *
_bfd_xcoff_archive_p (bfd *);
+extern
bfd_cleanup
_bfd_xcoff_archive_p (bfd *);
extern void * _bfd_xcoff_read_ar_hdr (bfd *);
extern bfd *_bfd_xcoff_openr_next_archived_file (bfd *, bfd *);
extern int _bfd_xcoff_stat_arch_elt (bfd *, struct stat *);
extern void * _bfd_xcoff_read_ar_hdr (bfd *);
extern bfd *_bfd_xcoff_openr_next_archived_file (bfd *, bfd *);
extern int _bfd_xcoff_stat_arch_elt (bfd *, struct stat *);
@@
-77,7
+77,7
@@
void xcoff_rtype2howto (arelent *, struct internal_reloc *);
#define coff_mkobject _bfd_xcoff_mkobject
#define coff_bfd_is_local_label_name _bfd_xcoff_is_local_label_name
#ifdef AIX_CORE
#define coff_mkobject _bfd_xcoff_mkobject
#define coff_bfd_is_local_label_name _bfd_xcoff_is_local_label_name
#ifdef AIX_CORE
-extern
const bfd_target *
rs6000coff_core_p (bfd *abfd);
+extern
bfd_cleanup
rs6000coff_core_p (bfd *abfd);
extern bfd_boolean rs6000coff_core_file_matches_executable_p
(bfd *cbfd, bfd *ebfd);
extern char *rs6000coff_core_file_failing_command (bfd *abfd);
extern bfd_boolean rs6000coff_core_file_matches_executable_p
(bfd *cbfd, bfd *ebfd);
extern char *rs6000coff_core_file_failing_command (bfd *abfd);
@@
-1260,9
+1260,9
@@
_bfd_xcoff_slurp_armap (bfd *abfd)
return FALSE;
GET_VALUE_IN_FIELD (sz, hdr.size, 10);
return FALSE;
GET_VALUE_IN_FIELD (sz, hdr.size, 10);
- if (sz
== (bfd_size_type) -1
)
+ if (sz
+ 1 < 5
)
{
{
- bfd_set_error (bfd_error_
no_memory
);
+ bfd_set_error (bfd_error_
bad_value
);
return FALSE;
}
return FALSE;
}
@@
-1322,9
+1322,9
@@
_bfd_xcoff_slurp_armap (bfd *abfd)
return FALSE;
GET_VALUE_IN_FIELD (sz, hdr.size, 10);
return FALSE;
GET_VALUE_IN_FIELD (sz, hdr.size, 10);
- if (sz
== (bfd_size_type) -1
)
+ if (sz
+ 1 < 9
)
{
{
- bfd_set_error (bfd_error_
no_memory
);
+ bfd_set_error (bfd_error_
bad_value
);
return FALSE;
}
return FALSE;
}
@@
-1380,7
+1380,7
@@
_bfd_xcoff_slurp_armap (bfd *abfd)
/* See if this is an XCOFF archive. */
/* See if this is an XCOFF archive. */
-const bfd_target *
+bfd_cleanup
_bfd_xcoff_archive_p (bfd *abfd)
{
struct artdata *tdata_hold;
_bfd_xcoff_archive_p (bfd *abfd)
{
struct artdata *tdata_hold;
@@
-1481,7
+1481,7
@@
_bfd_xcoff_archive_p (bfd *abfd)
return NULL;
}
return NULL;
}
- return
abfd->xvec
;
+ return
_bfd_no_cleanup
;
}
/* Read the archive header in an XCOFF archive. */
}
/* Read the archive header in an XCOFF archive. */
@@
-3389,7
+3389,8
@@
xcoff_ppc_relocate_section (bfd *output_bfd,
(info, h->root.root.string,
input_bfd, input_section,
rel->r_vaddr - input_section->vma,
(info, h->root.root.string,
input_bfd, input_section,
rel->r_vaddr - input_section->vma,
- info->unresolved_syms_in_objects == RM_GENERATE_ERROR);
+ info->unresolved_syms_in_objects == RM_DIAGNOSE &&
+ !info->warn_unresolved_syms);
if (h->root.type == bfd_link_hash_defined
|| h->root.type == bfd_link_hash_defweak)
if (h->root.type == bfd_link_hash_defined
|| h->root.type == bfd_link_hash_defweak)
This page took
0.026207 seconds
and
4
git commands to generate.