This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch] Nios II build_id fix
- From: Alan Modra <amodra at gmail dot com>
- To: Cesar Philippidis <cesar at codesourcery dot com>
- Cc: binutils at sourceware dot org, Sandra Loosemore <sandra at codesourcery dot com>
- Date: Sat, 5 Apr 2014 12:01:50 +1030
- Subject: Re: [patch] Nios II build_id fix
- Authentication-results: sourceware.org; auth=none
- References: <533EF156 dot 3030504 at codesourcery dot com>
On Fri, Apr 04, 2014 at 10:52:22AM -0700, Cesar Philippidis wrote:
> @@ -2016,6 +2016,10 @@ nios2_elf32_build_stubs (struct bfd_link
> {
> bfd_size_type size;
>
> + /* Ignore non-stub sections. */
> + if (!strstr (stub_sec->name, STUB_SUFFIX))
> + continue;
Um, how do you manage to get non-stub sections in the stub bfd? Hmm,
via dynobj being set to the stub bfd, I expect. If so, you could
probably test (stub_sec->flags & SEC_LINKER_CREATED) == 0 instead.
--
Alan Modra
Australia Development Lab, IBM