* image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
section. Fixes #591000.
svn path=/trunk/mono/; revision=154295
+2010-03-26 Zoltan Varga <vargaz@gmail.com>
+
+ * image-writer.c (bin_writer_emit_writeout): Fix the size of the got.plt
+ section. Fixes #591000.
+
2010-03-26 Andreas Faerber <andreas.faerber@web.de>
* Makefile.am (version.h): Check for pure .git directory only,
virt_offset = ALIGN_TO (virt_offset, secth [SECT_GOT_PLT].sh_addralign);
secth [SECT_GOT_PLT].sh_addr = virt_offset;
secth [SECT_GOT_PLT].sh_offset = file_offset;
- size = 12;
+ size = 3 * SIZEOF_VOID_P;
secth [SECT_GOT_PLT].sh_size = size;
file_offset += size;
virt_offset += size;
secth [SECT_STRTAB].sh_size = size;
file_offset += size;
+ for (i = 1; i < SECT_NUM; ++i) {
+ if (section_info [i].esize != 0)
+ g_assert (secth [i].sh_size % section_info [i].esize == 0);
+ }
+
file_offset += 4-1;
file_offset &= ~(4-1);