utils/fatelf-glue.c
changeset 106 e8010ae51530
parent 48 e8e51420e5c4
--- a/utils/fatelf-glue.c	Sat Oct 24 03:23:53 2009 -0400
+++ b/utils/fatelf-glue.c	Sun Oct 25 12:42:46 2009 -0400
@@ -39,8 +39,8 @@
         const int fd = xopen(fname, O_RDONLY, 0755);
         FATELF_record *record = &header->records[i];
 
+        xread_elf_header(fname, fd, 0, record);
         record->offset = binary_offset;
-        xread_elf_header(fname, fd, 0, record);
 
         // make sure we don't have a duplicate target.
         for (j = 0; j < i; j++)