+2015-07-10 Alan Modra <amodra@gmail.com>
+
+ * ldexp.c (align_dot_val): New function.
+ (fold_unary <ALIGN_K, NEXT>): Use it.
+
2015-07-03 Kai Tietz <ktietz@redhat.com>
PR ld/11539
expld.result.section = s;
}
+static void
+align_dot_val (bfd_vma align)
+{
+ bfd_vma base = expld.section->vma;
+
+ new_rel_from_abs (base + align_n (expld.dot - base, align));
+}
+
/* New-function for the definedness hash table. */
static struct bfd_hash_entry *
{
case ALIGN_K:
if (expld.phase != lang_first_phase_enum)
- new_rel_from_abs (align_n (expld.dot, expld.result.value));
+ align_dot_val (expld.result.value);
else
expld.result.valid_p = FALSE;
break;
if (expld.phase != lang_first_phase_enum)
{
make_abs ();
- expld.result.value = align_n (expld.dot, expld.result.value);
+ align_dot_val (expld.result.value);
}
else
expld.result.valid_p = FALSE;