bfd/
[deliverable/binutils-gdb.git] / ld / ldexp.c
index f80ee37a8684ad1da69e005b938741f57614c267..4f279b853b70d93cc2728a257228adf3fb449560 100644 (file)
@@ -481,7 +481,7 @@ fold_name (etree_type *tree)
          /* Don't find the real header size if only marking sections;
             The bfd function may cache incorrect data.  */
          if (expld.phase != lang_mark_phase_enum)
-           hdr_size = bfd_sizeof_headers (output_bfd, link_info.relocatable);
+           hdr_size = bfd_sizeof_headers (output_bfd, &link_info);
          new_abs (hdr_size);
        }
       break;
@@ -563,7 +563,7 @@ fold_name (etree_type *tree)
          lang_output_section_statement_type *os;
 
          os = lang_output_section_find (tree->name.name);
-         if (os != NULL && os->processed)
+         if (os != NULL && os->processed_vma)
            new_rel (0, NULL, os->bfd_section);
        }
       break;
@@ -574,10 +574,10 @@ fold_name (etree_type *tree)
          lang_output_section_statement_type *os;
 
          os = lang_output_section_find (tree->name.name);
-         if (os != NULL && os->processed)
+         if (os != NULL && os->processed_lma)
            {
              if (os->load_base == NULL)
-               new_rel (0, NULL, os->bfd_section);
+               new_abs (os->bfd_section->lma);
              else
                exp_fold_tree_1 (os->load_base);
            }
@@ -593,7 +593,7 @@ fold_name (etree_type *tree)
          os = lang_output_section_find (tree->name.name);
          if (os == NULL)
            new_abs (0);
-         else if (os->processed)
+         else if (os->processed_vma)
            new_abs (os->bfd_section->size / opb);
        }
       break;
This page took 0.023805 seconds and 4 git commands to generate.