aboutsummaryrefslogtreecommitdiff
path: root/ld/ldwrite.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-09-21 20:21:59 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-09-21 20:21:59 +0000
commit6d5e62f8b559ccc0be3f1eb0a4cb90cb9dba0c79 (patch)
treee2a80a1cda6cf2f2da584218b4867c8a10e39d64 /ld/ldwrite.c
parent8c6b089eed6ce82a6569fb5ccd53e587d803b8ea (diff)
downloadgdb-6d5e62f8b559ccc0be3f1eb0a4cb90cb9dba0c79.zip
gdb-6d5e62f8b559ccc0be3f1eb0a4cb90cb9dba0c79.tar.gz
gdb-6d5e62f8b559ccc0be3f1eb0a4cb90cb9dba0c79.tar.bz2
2000-09-21 Kazu Hirata <kazu@hxi.com>
* ldmain.c: Fix formatting. * ldmisc.c: Likewise. * ldver.c: Likewise. * ldwrite.c: Likewise.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r--ld/ldwrite.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c
index 589b910..e4f176f 100644
--- a/ld/ldwrite.c
+++ b/ld/ldwrite.c
@@ -290,10 +290,8 @@ build_link_order (statement)
/* Call BFD to write out the linked file. */
-
/**********************************************************************/
-
/* Wander around the input sections, make sure that
we'll never try and create an output section with more relocs
than will fit.. Do this by always assuming the worst case, and
@@ -345,7 +343,7 @@ clone_section (abfd, s, name, count)
}
#if TESTING
-static void
+static void
ds (s)
asection *s;
{
@@ -365,6 +363,7 @@ ds (s)
}
printf ("\n");
}
+
dump (s, a1, a2)
char *s;
asection *a1;
@@ -375,7 +374,7 @@ dump (s, a1, a2)
ds (a2);
}
-static void
+static void
sanity_check (abfd)
bfd *abfd;
{
@@ -399,7 +398,7 @@ sanity_check (abfd)
#define dump(a, b, c)
#endif
-static void
+static void
split_sections (abfd, info)
bfd *abfd;
struct bfd_link_info *info;
@@ -520,7 +519,9 @@ split_sections (abfd, info)
}
sanity_check (abfd);
}
+
/**********************************************************************/
+
void
ldwrite ()
{
@@ -541,6 +542,6 @@ ldwrite ()
if (bfd_get_error () != bfd_error_no_error)
einfo (_("%F%P: final link failed: %E\n"));
else
- xexit(1);
+ xexit (1);
}
}