[patch] Parse NT_GNU_BUILD_ID into elf_obj_tdata->build_id*

Roland McGrath roland@redhat.com
Sun Aug 19 11:35:00 GMT 2007


> 	(_bfd_elf_make_section_from_shdr): Call ELF_PARSE_NOTES for all the
> 	sections with the name starting with `.note.'.

This should be driven by sh_type == SHT_NOTE, not by names.

> +static bfd_boolean
> +elfobj_grok_note (bfd *abfd, Elf_Internal_Note *note)
> +{
> +  switch (note->type)

This needs to check the name field.  The NT_GNU_* type number assignments
only apply to notes with name "GNU" (n_namesz = 4).


Thanks,
Roland



More information about the Binutils mailing list