Changeset 609 for branches/GNU/src/binutils/ld/ldwrite.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/ld/ldwrite.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* ldwrite.c -- write out the linked file 2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000 2 Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2002 3 3 Free Software Foundation, Inc. 4 4 Written by Steve Chamberlain sac@cygnus.com … … 30 30 #include "ldwrite.h" 31 31 #include "ldmisc.h" 32 #include "ldgram.h"32 #include <ldgram.h> 33 33 #include "ldmain.h" 34 34 … … 50 50 struct bfd_link_order *link_order; 51 51 bfd_vma value; 52 b oolean big_endian = false;52 bfd_boolean big_endian = FALSE; 53 53 54 54 output_section = statement->data_statement.output_section; … … 71 71 input file is little endian. */ 72 72 if (bfd_big_endian (output_bfd)) 73 big_endian = true;73 big_endian = TRUE; 74 74 else if (bfd_little_endian (output_bfd)) 75 big_endian = false;75 big_endian = FALSE; 76 76 else 77 77 { 78 b oolean swap;79 80 swap = false;78 bfd_boolean swap; 79 80 swap = FALSE; 81 81 if (command_line.endian == ENDIAN_BIG) 82 big_endian = true;82 big_endian = TRUE; 83 83 else if (command_line.endian == ENDIAN_LITTLE) 84 84 { 85 big_endian = false;86 swap = true;85 big_endian = FALSE; 86 swap = TRUE; 87 87 } 88 88 else if (command_line.endian == ENDIAN_UNSET) 89 89 { 90 big_endian = true;90 big_endian = TRUE; 91 91 { 92 92 LANG_FOR_EACH_INPUT_STATEMENT (s) … … 96 96 if (bfd_little_endian (s->the_bfd)) 97 97 { 98 big_endian = false;99 swap = true;98 big_endian = FALSE; 99 swap = TRUE; 100 100 } 101 101 break; … … 227 227 /* Create a new link_order in the output section with this 228 228 attached */ 229 if ( statement->input_section.ifile->just_syms_flag == false)229 if (!statement->input_section.ifile->just_syms_flag) 230 230 { 231 231 asection *i = statement->input_section.section; … … 234 234 ASSERT (output_section->owner == output_bfd); 235 235 236 if ((output_section->flags & SEC_HAS_CONTENTS) != 0) 236 if ((output_section->flags & SEC_HAS_CONTENTS) != 0 237 || ((output_section->flags & SEC_LOAD) != 0 238 && (output_section->flags & SEC_THREAD_LOCAL))) 237 239 { 238 240 struct bfd_link_order *link_order; … … 244 246 /* We've got a never load section inside one which 245 247 is going to be output, we'll change it into a 246 fill link_order */ 247 link_order->type = bfd_fill_link_order; 248 link_order->u.fill.value = 0; 248 fill. */ 249 link_order->type = bfd_data_link_order; 250 link_order->u.data.contents = ""; 251 link_order->u.data.size = 1; 249 252 } 250 253 else … … 275 278 { 276 279 link_order = bfd_new_link_order (output_bfd, output_section); 277 link_order->type = bfd_ fill_link_order;280 link_order->type = bfd_data_link_order; 278 281 link_order->size = statement->padding_statement.size; 279 282 link_order->offset = statement->padding_statement.output_offset; 280 link_order->u.fill.value = statement->padding_statement.fill; 283 link_order->u.data.contents = statement->padding_statement.fill->data; 284 link_order->u.data.size = statement->padding_statement.fill->size; 281 285 } 282 286 } … … 317 321 || (n = bfd_make_section_anyway (abfd, sname)) == NULL 318 322 || (h = bfd_link_hash_lookup (link_info.hash, 319 sname, true, true, false)) == NULL)323 sname, TRUE, TRUE, FALSE)) == NULL) 320 324 { 321 325 einfo (_("%F%P: clone section failed: %E\n")); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.