diff options
author | Alan Modra <amodra@gmail.com> | 2005-11-03 02:54:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-11-03 02:54:10 +0000 |
commit | 7fabd0295e49acb53d88c31a73719ec78d7f03a4 (patch) | |
tree | f00a131d990d1ac9ade781cc78a68a0bd05979bf /ld/ldwrite.c | |
parent | 3a800eb947748a8cad1b13ed485b5dce1b4cfc4b (diff) | |
download | gdb-7fabd0295e49acb53d88c31a73719ec78d7f03a4.zip gdb-7fabd0295e49acb53d88c31a73719ec78d7f03a4.tar.gz gdb-7fabd0295e49acb53d88c31a73719ec78d7f03a4.tar.bz2 |
* ldlang.h (lang_output_section_statement_type): Rearrange. Remove
memspec. Make "processed" a bitfield.
(lang_data_statement_type, lang_reloc_statement_type): Rename
output_vma to output_offset.
* ldlang.c (lang_output_section_statement_lookup_1): Init
all_input_readonly. Don't init memspec.
(init_os): Remove incorrect comment.
(print_data_statement, print_reloc_statement): Adjust for
lang_data_statement_type and lang_reloc_statement_type change.
(lang_size_sections_1, lang_add_reloc): Likewise.
* ldwrite.c (build_link_order): Likewise.
Diffstat (limited to 'ld/ldwrite.c')
-rw-r--r-- | ld/ldwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/ldwrite.c b/ld/ldwrite.c index e311743..d7bfab8 100644 --- a/ld/ldwrite.c +++ b/ld/ldwrite.c @@ -55,7 +55,7 @@ build_link_order (lang_statement_union_type *statement) einfo (_("%P%F: bfd_new_link_order failed\n")); link_order->type = bfd_data_link_order; - link_order->offset = statement->data_statement.output_vma; + link_order->offset = statement->data_statement.output_offset; link_order->u.data.contents = xmalloc (QUAD_SIZE); value = statement->data_statement.value; @@ -190,7 +190,7 @@ build_link_order (lang_statement_union_type *statement) if (link_order == NULL) einfo (_("%P%F: bfd_new_link_order failed\n")); - link_order->offset = rs->output_vma; + link_order->offset = rs->output_offset; link_order->size = bfd_get_reloc_size (rs->howto); link_order->u.reloc.p = xmalloc (sizeof (struct bfd_link_order_reloc)); |