summaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-02-03 18:24:46 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-02-03 18:24:46 +0000
commit730ea5bef713af5bfe574b82058598854069bb2f (patch)
treed4e42f10f7a315efbab7ae09d5944ad0cc0cf367 /ld/ldexp.c
parent8b0411b62361093343b4d33c69985e00de74a4fc (diff)
downloadbinutils-redhat-730ea5bef713af5bfe574b82058598854069bb2f.tar.gz
Add octets vs bytes functionality to LD.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r--ld/ldexp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/ldexp.c b/ld/ldexp.c
index 121ed889d8..0c38314ffa 100644
--- a/ld/ldexp.c
+++ b/ld/ldexp.c
@@ -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 ();