+2023-02-20 Mark Wielaard <mark@klomp.org>
+
+ * dwarf_begin_elf.c (check_section): Use elf_rawdata.
+
2023-02-14 Mark Wielaard <mark@klomp.org>
* dwarf_getlocation.c (__libdw_intern_expression): Correct check
/* Create descriptor from ELF descriptor for processing file.
Copyright (C) 2002-2011, 2014, 2015, 2017, 2018 Red Hat, Inc.
+ Copyright (C) 2023, Mark J. Wielaard <mark@klomp.org>
This file is part of elfutils.
This file is free software; you can redistribute it and/or modify
}
}
- /* Get the section data. */
- Elf_Data *data = elf_getdata (scn, NULL);
+ /* Get the section data. Should be raw bytes, no conversion needed. */
+ Elf_Data *data = elf_rawdata (scn, NULL);
if (data == NULL)
goto err;