xcoff slurp_armap bounds checking
[deliverable/binutils-gdb.git] / ld / ldexp.c
index d7d253eee12b50df8ab201d7a69316fca922ee29..b287022f5a1290d28f6046606086a022bb927379 100644 (file)
@@ -30,6 +30,7 @@
 #include "sysdep.h"
 #include "bfd.h"
 #include "bfdlink.h"
+#include "ctf-api.h"
 
 #include "ld.h"
 #include "ldmain.h"
@@ -851,7 +852,8 @@ fold_name (etree_type *tree)
 
              if (tree->type.node_code == SIZEOF)
                val = (os->bfd_section->size
-                      / bfd_octets_per_byte (link_info.output_bfd));
+                      / bfd_octets_per_byte (link_info.output_bfd,
+                                             os->bfd_section));
              else
                val = (bfd_vma)1 << os->bfd_section->alignment_power;
 
This page took 0.028217 seconds and 4 git commands to generate.