|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v10 17/24] build_id: Provide ld-embedded build-ids
>>> On 27.04.16 at 21:27, <konrad.wilk@xxxxxxxxxx> wrote:
> @@ -304,6 +338,32 @@ int main(int argc, char **argv)
> /*mem_siz = (u32)in64_phdr.p_memsz;*/
> mem_siz = (u32)(final_exec_addr - in64_phdr.p_vaddr);
>
> + note_sz = note_base = offset = 0;
> + if ( num_phdrs > 1 )
> + {
> + offset = in64_phdr.p_offset;
> + note_base = in64_phdr.p_vaddr;
> +
> + (void)lseek(infd, in64_ehdr.e_phoff+sizeof(in64_phdr), SEEK_SET);
> + do_read(infd, &in64_phdr, sizeof(in64_phdr));
> + endianadjust_phdr64(&in64_phdr);
> +
> + (void)lseek(infd, offset, SEEK_SET);
> +
> + note_sz = in64_phdr.p_memsz;
> + note_base = in64_phdr.p_vaddr - note_base;
> +
> + if ( in64_phdr.p_offset > dat_siz || offset > in64_phdr.p_offset )
> + {
> + fprintf(stderr, "Expected .note section within .text section!\n"
> \
> + "Offset %ld not within %d!\n",
> + in64_phdr.p_offset, dat_siz);
This fails to build on a 32-bit build host (which is one of the two
post-commit, pre-push checks I normally do).
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |