mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Modified Files:
ChangeLog i386os9k.c Makefile.in * i386os9k.c: use new functions bfd_set_error and bfd_get_error. * Makefile.in: delete an extra blank.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Tue Mar 1 13:06:53 1994 Kung Hsu (kung@mexican.cygnus.com)
|
Tue Mar 1 13:06:53 1994 Kung Hsu (kung@mexican.cygnus.com)
|
||||||
|
|
||||||
|
* i386os9k.c: use new functions bfd_set_error and bfd_get_error.
|
||||||
|
* Makefile.in: delete an extra blank.
|
||||||
* configure.in : Add i396os9k_vec.
|
* configure.in : Add i396os9k_vec.
|
||||||
|
|
||||||
Mon Feb 28 15:41:01 1994 Kung Hsu (kung@mexican.cygnus.com)
|
Mon Feb 28 15:41:01 1994 Kung Hsu (kung@mexican.cygnus.com)
|
||||||
|
@ -107,13 +107,13 @@ os9k_object_p (abfd)
|
|||||||
|
|
||||||
if (bfd_read ((PTR) &exec_bytes, MHCOM_BYTES_SIZE, 1, abfd)
|
if (bfd_read ((PTR) &exec_bytes, MHCOM_BYTES_SIZE, 1, abfd)
|
||||||
!= MHCOM_BYTES_SIZE) {
|
!= MHCOM_BYTES_SIZE) {
|
||||||
bfd_error = wrong_format;
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
anexec.a_info = bfd_h_get_16 (abfd, exec_bytes.m_sync);
|
anexec.a_info = bfd_h_get_16 (abfd, exec_bytes.m_sync);
|
||||||
if (N_BADMAG (anexec)) {
|
if (N_BADMAG (anexec)) {
|
||||||
bfd_error = wrong_format;
|
bfd_set_error (bfd_error_wrong_format);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ os9k_mkobject (abfd)
|
|||||||
|
|
||||||
rawptr = (struct bout_data_struct *) bfd_zalloc (abfd, sizeof (struct bout_data_struct));
|
rawptr = (struct bout_data_struct *) bfd_zalloc (abfd, sizeof (struct bout_data_struct));
|
||||||
if (rawptr == NULL) {
|
if (rawptr == NULL) {
|
||||||
bfd_error = no_memory;
|
bfd_set_error (bfd_error_no_memory);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -263,7 +263,7 @@ os9k_set_section_contents (abfd, section, location, offset, count)
|
|||||||
if (abfd->output_has_begun == false) { /* set by bfd.c handler */
|
if (abfd->output_has_begun == false) { /* set by bfd.c handler */
|
||||||
if ((obj_textsec (abfd) == NULL) || (obj_datasec (abfd) == NULL) /*||
|
if ((obj_textsec (abfd) == NULL) || (obj_datasec (abfd) == NULL) /*||
|
||||||
(obj_textsec (abfd)->_cooked_size == 0) || (obj_datasec (abfd)->_cooked_size == 0)*/) {
|
(obj_textsec (abfd)->_cooked_size == 0) || (obj_datasec (abfd)->_cooked_size == 0)*/) {
|
||||||
bfd_error = invalid_operation;
|
bfd_set_error (bfd_error_invalid_operation);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user