This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Parse NT_GNU_BUILD_ID into elf_obj_tdata->build_id*


> 	(_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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]