+2014-04-22 Yuanhui Zhang <asmwarrior@gmail.com>
+
+ PR ld/16821
+ * peXXigen.c (abs_finder): Fix for 32-bit host builds.
+
2014-04-22 Will Newton <will.newton@linaro.org>
* elfnn-aarch64.c (elfNN_aarch64_section_flags): Remove
{
bfd_vma abs_val = * (bfd_vma *) data;
- return (sec->vma <= abs_val) && ((sec->vma + (1L << 32)) > abs_val);
+ return (sec->vma <= abs_val) && ((sec->vma + (1LL << 32)) > abs_val);
}
unsigned int
/* Unhook NEXT from the chain. */
/* FIXME: memory loss here. */
+ /* FIXME: do we need to decrement sizeof_tables_and_entries ? */
entry->next_entry = next->next_entry;
chain->num_entries --;
if (chain->num_entries < 2)
}
/* Unhook NEXT from the chain. */
+ /* FIXME: do we need to decrement sizeof_tables_and_entries ? */
entry->next_entry = next->next_entry;
chain->num_entries --;
if (chain->num_entries < 2)
if (new_data == NULL)
goto end;
+ /* We have merged the top level Type Tables of all of the input
+ .rsrc sections into one Type Table. So we can (and must)
+ reduce the count of the number of tables that we will be
+ emitting appropriately. */
+ sizeof_tables_and_entries -= 16 * (num_resource_sets - 1);
+
write_data.abfd = abfd;
write_data.datastart = new_data;
write_data.next_table = new_data;