aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-18 18:49:34 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-18 18:49:34 +0000
commitd7785845ff5fbcdf50d56d944b2695bb5d3caf79 (patch)
treef1975da48d4ad36b023e99ada5a04879f984c1cc /bfd
parentd4d166835feb3cf33d812e209c61e5a9dfdc3f96 (diff)
downloadgdb-d7785845ff5fbcdf50d56d944b2695bb5d3caf79.zip
gdb-d7785845ff5fbcdf50d56d944b2695bb5d3caf79.tar.gz
gdb-d7785845ff5fbcdf50d56d944b2695bb5d3caf79.tar.bz2
* aout-target.h (MY_bfd_copy_private_section_data): Only copy
subformat to another bfd_target_aout_flavour file.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/aout-target.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index 57e7e81..201fa1c 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -199,7 +199,8 @@ MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
bfd *obfd;
asection *osec;
{
- obj_aout_subformat (obfd) = obj_aout_subformat (ibfd);
+ if (bfd_get_flavour (obfd) == bfd_target_aout_flavour)
+ obj_aout_subformat (obfd) = obj_aout_subformat (ibfd);
return true;
}
@@ -360,6 +361,9 @@ MY_bfd_final_link (abfd, info)
#ifndef MY_truncate_arname
#define MY_truncate_arname bfd_bsd_truncate_arname
#endif
+#ifndef MY_update_armap_timestamp
+#define MY_update_armap_timestamp _bfd_archive_bsd_update_armap_timestamp
+#endif
/* No core file defined here -- configure in trad-core.c separately. */
#ifndef MY_core_file_failing_command