HomeDefectsLIN9-2239
Fixed

LIN9-2239 : readelf fails to parse libmvec-2.24.so

Created: Nov 16, 2016    Updated: Feb 13, 2017
Resolved Date: Jan 18, 2017
Found In Version: unknown
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Documentation

Description

1 setup.sh --machines=qemux86-64 --kernel=standard --layers=kernel-dev --all-layers --dl-layers 
2 source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build 
3 echo 'ELECTED_OPTIMIZATION = "${PROFILING_OPTIMIZATION}"' >> conf/local.conf
   echo 'EXTRA_IMAGE_FEATURES += "dbg-pkgs"' >> conf/local.conf 
$ bitbake wrlinux-image-glibc-std 
$ readelf --sections /build_path/build/tmp/work/qemux86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/lib64/.debug/libmvec-2.24.so

...
Key to Flags: 
  W (write), A (alloc), X (execute), M (merge), S (strings), l (large) 
  I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) 
  O (extra OS processing required) o (OS specific), p (processor specific) 
readelf: Error: the dynamic segment offset + size exceeds the size of the file

Steps to Reproduce

$ setup.sh --machines=qemux86-64 --kernel=standard --layers=kernel-dev --all-layers --dl-layers
$ source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build
# append below 2 lines to local.conf to enable profiling
 ELECTED_OPTIMIZATION = "${PROFILING_OPTIMIZATION}"
 EXTRA_IMAGE_FEATURES += "dbg-pkgs"
$ bitbake wrlinux-image-glibc-std
$ readelf --sections /build_path/build/tmp/work/qemux86_64-wrs-linux/wrlinux-image-glibc-std/1.0-r5/rootfs/lib64/.debug/libmvec-2.24.so >/dev/null