+2020-09-09 Alan Modra <amodra@gmail.com>
+
+ PR 26578
+ * dwarf.c (parse_gnu_debugaltlink): Don't alloc build_id_data.
+ (load_separate_debug_files): Use a stack var for build_id_data.
+
2020-09-08 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26587
if (id_len < 0x14)
return NULL;
- build_id_data = calloc (1, sizeof * build_id_data);
- if (build_id_data == NULL)
- return NULL;
-
+ build_id_data = (Build_id_data *) data;
build_id_data->len = id_len;
build_id_data->data = section->start + namelen;
- * (Build_id_data **) data = build_id_data;
-
return name;
}
if (load_debug_section (gnu_debugaltlink, file))
{
- Build_id_data * build_id_data;
+ Build_id_data build_id_data;
load_separate_debug_info (filename,
& debug_displays[gnu_debugaltlink].section,