aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1997-11-25 02:09:19 +0000
committerNick Clifton <nickc@redhat.com>1997-11-25 02:09:19 +0000
commit33d5d351564e39610f402dd8d82f767506f751c2 (patch)
treefc48eb96eccbbade69b232aac6dd6ce49e556ad3 /bfd
parent3445e1cefbdf3ac4d47447b6260a0366afb37f7d (diff)
downloadgdb-33d5d351564e39610f402dd8d82f767506f751c2.zip
gdb-33d5d351564e39610f402dd8d82f767506f751c2.tar.gz
gdb-33d5d351564e39610f402dd8d82f767506f751c2.tar.bz2
Cut out unused code for PE build.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/coff-arm.c14
2 files changed, 14 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2457170..c415e35 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,7 +1,8 @@
Mon Nov 24 15:47:49 1997 Nick Clifton <nickc@cygnus.com>
- * coff-arm.c: Make variables and functions static, so that this
- file can be included in multiple object files.
+ * coff-arm.c: Make variables and some functions static, so that
+ this file can be included in multiple object files.
+ (coff_arm_bfd_final_link): Fix minor bug.
Sat Nov 22 15:16:00 1997 Nick Clifton <nickc@cygnus.com>
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 9b7ce23..fde5e47 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1459,7 +1459,8 @@ coff_arm_relocate_section (output_bfd, info, input_bfd, input_section,
return true;
}
-static boolean
+#ifndef COFF_WITH_PR
+boolean
arm_allocate_interworking_sections (info)
struct bfd_link_info *info;
{
@@ -1620,7 +1621,7 @@ record_thumb_to_arm_glue (info, h)
return;
}
-static boolean
+boolean
arm_process_before_allocation (abfd, info)
bfd * abfd;
struct bfd_link_info * info;
@@ -1716,6 +1717,7 @@ arm_process_before_allocation (abfd, info)
return true;
}
+#endif /* not COFF_WITH_PE */
#define coff_relocate_section coff_arm_relocate_section
@@ -1765,6 +1767,12 @@ coff_arm_bfd_merge_private_bfd_data (ibfd, obfd)
/* If the two formats are different we cannot merge anything. */
if (ibfd->xvec != obfd->xvec)
{
+ _bfd_error_handler
+ ("ERROR: %s is format '%s' whereas %s is format '%s'",
+ bfd_get_filename (ibfd), bfd_get_target(ibfd),
+ bfd_get_filename (obfd), bfd_get_target(obfd)
+ );
+
bfd_set_error (bfd_error_wrong_format);
return false;
}
@@ -2333,8 +2341,8 @@ coff_arm_bfd_final_link (abfd, info)
{
if (! _bfd_coff_link_input_bfd (&finfo, last_one))
goto error_return;
+ last_one->output_has_begun = true;
}
- last_one->output_has_begun = true;
}
#endif