diff options
author | Alan Modra <amodra@gmail.com> | 2002-08-13 02:08:26 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-08-13 02:08:26 +0000 |
commit | c553bb910d30224f6d5e1e10a67a839093e97fa0 (patch) | |
tree | 52c723c7b8b604e0ecff9ffe0ca914faf69e074f /ld/ldlang.c | |
parent | 8e7157081c0a1cee57d160591c2c50f9e0c145e3 (diff) | |
download | gdb-c553bb910d30224f6d5e1e10a67a839093e97fa0.zip gdb-c553bb910d30224f6d5e1e10a67a839093e97fa0.tar.gz gdb-c553bb910d30224f6d5e1e10a67a839093e97fa0.tar.bz2 |
* emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
(MAXPAGESIZE): Set to 1.
* ld.h (ALIGN_N): Delete.
* ldexp.h (align_n): Declare.
* ldexp.c (align_n): New function.
(fold_binary): Use align_n instead of ALIGN_N.
(exp_fold_tree): Likewise.
* ldlang.c (lang_size_sections_1): Likewise.
(lang_one_common): Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index a777e5a..79de098 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -3047,9 +3047,8 @@ lang_size_sections_1 (s, output_section_statement, prev, fill, dot, relax) /* Put the section within the requested block size, or align at the block boundary. */ - after = ALIGN_N (os->bfd_section->vma + after = align_n (os->bfd_section->vma + os->bfd_section->_raw_size / opb, - /* The coercion here is important, see ld.h. */ (bfd_vma) os->block_value); if (bfd_is_abs_section (os->bfd_section)) @@ -3748,8 +3747,8 @@ lang_one_common (h, info) section = h->u.c.p->section; /* Increase the size of the section. */ - section->_cooked_size = ALIGN_N ((section->_cooked_size + opb - 1) / opb, - (bfd_size_type) (1 << power_of_two)) * opb; + section->_cooked_size = align_n ((section->_cooked_size + opb - 1) / opb, + (bfd_vma) 1 << power_of_two) * opb; /* Adjust the alignment if necessary. */ if (power_of_two > section->alignment_power) |