elfcreator: elfcreator_copy_scn() doesn't need the 'elf' arg

Not used at all, remove it.

Cc: Peter Jones <pjones@redhat.com>
Fixes: 29ef465cd8 ("Add scncopy - like object copy but tries not to change section content")
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2021-08-05 10:03:05 -03:00
parent 3925a5bd53
commit 7a8e75cd9a
3 changed files with 3 additions and 3 deletions

View File

@ -108,7 +108,7 @@ static void update_dyn_cache(ElfCreator *ctor)
ctor->dyndata = elf_getdata(ctor->dynscn, NULL);
}
void elfcreator_copy_scn(ElfCreator *ctor, Elf *src, Elf_Scn *scn)
void elfcreator_copy_scn(ElfCreator *ctor, Elf_Scn *scn)
{
Elf_Scn *newscn;
Elf_Data *indata, *outdata;

View File

@ -12,7 +12,7 @@
typedef struct elf_creator ElfCreator;
extern ElfCreator *elfcreator_begin(char *path, Elf *elf);
extern void elfcreator_copy_scn(ElfCreator *ctor, Elf *src, Elf_Scn *scn);
extern void elfcreator_copy_scn(ElfCreator *ctor, Elf_Scn *scn);
extern void elfcreator_end(ElfCreator *ctor);
#endif /* ELFCREATOR_H */

View File

@ -118,7 +118,7 @@ err:
if (!should_copy_scn(elf, shdr, sections) && !copy_all_sections)
continue;
elfcreator_copy_scn(ctor, elf, scn);
elfcreator_copy_scn(ctor, scn);
}
elfcreator_end(ctor);
return 0;