Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / ld / ldexp.c
index 8327a3f2bc14b9ceaa75d5d40a6a19a26aac8be6..1fda65d714836f12a8b2351d0c5162ca554d631a 100644 (file)
@@ -1,5 +1,5 @@
 /* This module handles expression trees.
-   Copyright (C) 1991-2019 Free Software Foundation, Inc.
+   Copyright (C) 1991-2020 Free Software Foundation, Inc.
    Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>.
 
    This file is part of the GNU Binutils.
@@ -852,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, NULL));
+                      / 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.023327 seconds and 4 git commands to generate.