Files
poky/meta/recipes-devtools
Robert Yang f302012bdd prelink: Fix Segmentation fault error when prelink qemu
The info->resolvetls might be NULL according to src/prelink.c:
[snip]
 /* Dynamic linker does not depend on any other library,
    all symbols resolve to themselves with the exception
    of SHN_UNDEF symbols which resolve to 0.  */
if (info->symtab[r_sym].st_shndx == SHN_UNDEF)
  {
    info->resolveent = NULL;
    info->resolvetls = NULL;
[snip]

So we must check it before use its members, otherwise, there might be
Segmentation fault error.

Fixed:
MACHINE = "qemumips"
IMAGE_INSTALL_append = " qemu"
$ bitbake core-image-minimal
[snip]
| /path/to/qemumips-poky-linux/core-image-minimal/1.0-r0/temp/run.prelink_image.1000: line 111:  1010 Segmentation fault      (core dumped)
[snip]

(From OE-Core rev: 7f5d6f6b70cb1eb486d3ff5c029fc3c6202fc826)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-10-12 16:57:21 +01:00
..
2018-03-09 09:17:03 -08:00
2018-10-09 19:04:02 +01:00
2018-09-10 12:13:06 +01:00
2018-07-05 00:22:08 +01:00
2018-09-21 18:45:46 -07:00
2018-08-23 18:02:23 +01:00
2018-08-23 18:02:23 +01:00
2018-06-27 13:55:21 +01:00
2018-06-18 11:07:57 +01:00
2018-03-20 09:59:32 +00:00
2018-03-06 06:43:10 -08:00
2018-08-08 10:51:59 +01:00
2018-10-08 16:04:12 +01:00
2018-07-05 11:39:06 +01:00
2018-08-15 09:44:33 +01:00
2018-09-04 11:03:56 +01:00
2018-03-09 09:17:03 -08:00
2018-05-11 07:49:37 +01:00
2018-01-02 17:24:37 +00:00
2018-01-30 12:53:16 +00:00
2018-03-11 06:27:01 -07:00
2018-03-31 09:48:42 +01:00
2018-09-20 05:41:32 -07:00
2017-12-18 18:03:56 +00:00
2018-08-23 07:50:01 +01:00
2018-09-25 23:15:49 +01:00
2018-09-11 10:46:17 +01:00
2018-09-21 18:45:47 -07:00
2018-09-10 12:13:06 +01:00
2018-08-29 10:42:51 +01:00
2018-10-09 19:04:02 +01:00
2018-06-21 09:34:40 +01:00
2018-03-09 09:17:03 -08:00
2018-02-06 11:06:29 +00:00
2018-10-12 16:57:21 +01:00