Skip to content

Commit

Permalink
Fixed fatelf-glue writing records with zero offset.
Browse files Browse the repository at this point in the history
Fixes regression introduced by changeset 101:0087a1620fbe.
  • Loading branch information
icculus committed Oct 25, 2009
1 parent e0a8954 commit 6a7ff13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/fatelf-glue.c
Expand Up @@ -39,8 +39,8 @@ static int fatelf_glue(const char *out, const char **bins, const int bincount)
const int fd = xopen(fname, O_RDONLY, 0755);
FATELF_record *record = &header->records[i];

record->offset = binary_offset;
xread_elf_header(fname, fd, 0, record);
record->offset = binary_offset;

// make sure we don't have a duplicate target.
for (j = 0; j < i; j++)
Expand Down

0 comments on commit 6a7ff13

Please sign in to comment.