UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 66170

2015.4 PetaLinux - Libraries from toolchains such as libc are not stripped on the target rootfs

Description

The prebuilt packages of the toolchain libraries are not stripped.

As a result, after being extracted from the packages, the libraries in the rootfs are not stripped.

Solution

petalinux-create -t apps --template install -n strip_binaries --enable

Edit the Makefile in components/apps/strip_binaries.

Add a step to strip the binaries of the target rootfs.

For example:

Install:
# strip all the extracted packages in target root
for f in $$(find "$(TARGETROOT)" -type f); do \
if file "$$f" | grep -q "ELF" ; then \
$(STRIP) $$f; \
fi; \
done

Linked Answer Records

Master Answer Records

Answer Number Answer Title Version Found Version Resolved
66107 PetaLinux 2015.4 - Product Update Release Notes and Known Issues N/A N/A
AR# 66170
Date Created 12/09/2015
Last Updated 01/04/2016
Status Active
Type General Article
Devices
  • Zynq UltraScale+ MPSoC
  • Zynq-7000
  • Zynq-7000Q
Tools
  • PetaLinux - 2015.4