Add support for WinCE based toolchains.
[deliverable/binutils-gdb.git] / ld / ldexp.c
index 121ed889d87945b515b1ff65560fb8915765728f..0c38314ffa4399d41917de861e5fc60a3edf94f0 100644 (file)
@@ -456,11 +456,12 @@ fold_name (tree, current_section, allocation_done, dot)
       case SIZEOF:
        if (allocation_done != lang_first_phase_enum)
          {
+            int opb = bfd_octets_per_byte (output_bfd);
            lang_output_section_statement_type *os;
 
            os = lang_output_section_find (tree->name.name);
            check (os, tree->name.name, "SIZEOF");
-           result = new_abs (os->bfd_section->_raw_size);
+           result = new_abs (os->bfd_section->_raw_size / opb);
          }
        else
          result = invalid ();
This page took 0.023763 seconds and 4 git commands to generate.