+ /*
+ * Prepare the destination buffer to receive the natively
+ * ordered note. The `d_buf`, `d_size`, and `d_version` fields
+ * of the destination structure must be set before invoking the
+ * `gelf_xlatetom()` function.
+ */
+ native_note_data.d_buf = g_new0(uint8_t, file_note_data->d_size);
+ BT_ASSERT(native_note_data.d_buf);
+
+ native_note_data.d_size = file_note_data->d_size;
+ native_note_data.d_version = file_note_data->d_version;
+
+ /* Translate the note data buffer to the host endianness. */
+ gelf_xlatetom(bin->elf_file, &native_note_data, file_note_data,
+ bin->endianness);
+