aboutsummaryrefslogtreecommitdiff
path: root/ld/ldwrite.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-10-25 15:48:53 +0000
committerIan Lance Taylor <ian@airs.com>1995-10-25 15:48:53 +0000
commit7d6439d9742cb0fdecc1a045e62a47ae18f5fe82 (patch)
tree54791e548ef8681c2258216cc5ee0a930c21f865 /ld/ldwrite.c
parent28a0c103996c49ab0784f19e3813f3b6ac4a6619 (diff)
downloadgdb-7d6439d9742cb0fdecc1a045e62a47ae18f5fe82.zip
gdb-7d6439d9742cb0fdecc1a045e62a47ae18f5fe82.tar.gz
gdb-7d6439d9742cb0fdecc1a045e62a47ae18f5fe82.tar.bz2
* ldmain.c (main): Initialize new field link_info.static_link.
* ldmain.c (add_keepsyms_file): Add \n at end of einfo calls. (constructor_callback): Likewise. * ldmisc.c (vfinfo): Likewise. * ldwrite.c (build_link_order): Likewise.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r--ld/ldwrite.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c
index be1465d..3dee0e3 100644
--- a/ld/ldwrite.c
+++ b/ld/ldwrite.c
@@ -35,6 +35,8 @@ static void print_symbol_table PARAMS ((void));
static void print_file_stuff PARAMS ((lang_input_statement_type *));
static boolean print_symbol PARAMS ((struct bfd_link_hash_entry *, PTR));
+extern char *strdup();
+
/* Build link_order structures for the BFD linker. */
static void
@@ -54,7 +56,7 @@ build_link_order (statement)
link_order = bfd_new_link_order (output_bfd, output_section);
if (link_order == NULL)
- einfo ("%P%F: bfd_new_link_order failed");
+ einfo ("%P%F: bfd_new_link_order failed\n");
link_order->type = bfd_data_link_order;
link_order->offset = statement->data_statement.output_vma;
@@ -100,7 +102,7 @@ build_link_order (statement)
link_order = bfd_new_link_order (output_bfd, output_section);
if (link_order == NULL)
- einfo ("%P%F: bfd_new_link_order failed");
+ einfo ("%P%F: bfd_new_link_order failed\n");
link_order->offset = rs->output_vma;
link_order->size = bfd_get_reloc_size (rs->howto);
@@ -223,7 +225,7 @@ clone_section (abfd, s, count)
chars of base section name and a digit suffix */
do
{
- int i;
+ unsigned int i;
char b[6];
for (i = 0; i < sizeof (b) - 1 && s->name[i]; i++)
b[i] = s->name[i];
@@ -253,7 +255,7 @@ clone_section (abfd, s, count)
n->output_section = n;
n->orelocation = 0;
n->reloc_count = 0;
- n->alignment_power = 1;
+ n->alignment_power = s->alignment_power;
return n;
}